Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #make
- I myself got the following error
- ________________
- KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
- make[1]: Entering directory `/usr/src/linux-source-2.6.39.4'
- WARNING: Symbol version dump /usr/src/linux-source-2.6.39.4/Module.symvers
- is missing; modules will have no dependencies and modversions.
- CFG80211 API is prefered for this kernel version
- Using CFG80211 API
- CC [M] /home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.o
- /home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.c: In function ΓÇÿwl_inform_single_bssΓÇÖ:
- /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ΓÇÖ
- make[2]: *** [/home/Sharan/Tools/Driver_Za_wireless/hybrid_wl/src/wl/sys/wl_cfg80211.o] Error 1
- make[1]: *** [_module_/home/Sharan/Tools/Driver_Za_wireless/hybrid_wl] Error 2
- make[1]: Leaving directory `/usr/src/linux-source-2.6.39.4'
- make: *** [all] Error 2
- _________________________________
- This means that we weren't able to create binaries (obviously)
- 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)
- So what i did is entered the file found the line 1817
- It says something like this
- freq = ieee80211_channel_to_frequency(notif_bss_info->channel
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
- ,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ
- #endif
- );
- 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
- 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
- So you can fix that (not a perfect code but it will work on your computer)
- ________________
- #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 39)
- freq = ieee80211_channel_to_frequency(notif_bss_info->channel,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ);
- #else
- freq = ieee80211_channel_to_frequency(notif_bss_info->channel,(notif_bss_info->channel <= CH_MAX_2G_CHANNEL) ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ);
- #endif
- ______________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement