Advertisement
Guest User

Untitled

a guest
Apr 16th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. #make
  2. I myself got the following error
  3. ________________
  4. KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
  5. make[1]: Entering directory `/usr/src/linux-source-2.6.39.4'
  6.  
  7. WARNING: Symbol version dump /usr/src/linux-source-2.6.39.4/Module.symvers
  8. is missing; modules will have no dependencies and modversions.
  9.  
  10. CFG80211 API is prefered for this kernel version
  11. Using CFG80211 API
  12. CC [M] /home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.o
  13. /home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.c: In function ΓÇÿwl_inform_single_bssΓÇÖ:
  14. /home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.c:1817: error: too few arguments to function ΓÇÿieee80211_channel_to_frequencyΓÇÖ
  15. make[2]: *** [/home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.o] Error 1
  16. make[1]: *** [_module_/home/Sharan/Tools/Driver_Za_wireless/hybrid_wl] Error 2
  17. make[1]: Leaving directory `/usr/src/linux-source-2.6.39.4'
  18. make: *** [all] Error 2
  19. _________________________________
  20. This means that we weren't able to create binaries (obviously)
  21. The reason (most of you and myself ignored) is written in the error. The error is in 1817 line of the file wl_cfg80211.c on calling the function (ieee80211_channel_to_frequency)
  22.  
  23. So what i did is entered the file found the line 1817
  24.  
  25. It says something like this
  26. freq = ieee80211_channel_to_frequency(notif_bss_info->channel
  27. #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
  28. ,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ
  29. #endif
  30. );
  31.  
  32. The problem here is that the #if is happening in preprocessing as you don't have two kernel versions also you don't have two types of ieee80211_channel_to_frequency functions
  33. if the error says too few arguments that means that your ieee80211_channel_to_frequency is calling the 2 argument function which is included with the 2.6.39 kernel version
  34.  
  35. So you can fix that (not a perfect code but it will work on your computer)
  36. ________________
  37. #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
  38. freq = ieee80211_channel_to_frequency(notif_bss_info->channel,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ);
  39. #else
  40. freq = ieee80211_channel_to_frequency(notif_bss_info->channel,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ);
  41. #endif
  42. ______________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement