Скачал драйвер: 2010_1217_RT3090_LinuxSTA_V2.4.0.4_WiFiBTCombo_DPO с официального сайта
Не выполняется команда make
root@artemhp-Lenovo-G570:/home/artemhp/wifi# make
make -C tools
make[1]: Entering directory `/home/artemhp/wifi/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/artemhp/wifi/tools'
/home/artemhp/wifi/tools/bin2h
cp -f os/linux/Makefile.6 /home/artemhp/wifi/os/linux/Makefile
make -C /lib/modules/3.2.0-24-generic-pae/build SUBDIRS=/home/artemhp/wifi/os/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
CC [M] /home/artemhp/wifi/os/linux/../../common/rtmp_mcu.o
/home/artemhp/wifi/os/linux/../../common/rtmp_mcu.c: In function ‘RtmpAsicLoadFirmware’:
/home/artemhp/wifi/os/linux/../../common/rtmp_mcu.c:352:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
/home/artemhp/wifi/os/linux/../../common/rtmp_mcu.c:355:2: warning: passing argument 1 of ‘writel’ makes integer from pointer without a cast [enabled by default]
/usr/src/linux-headers-3.2.0-24-generic-pae/arch/x86/include/asm/io.h:63:1: note: expected ‘unsigned int’ but argument is of type ‘ULONG *’
/home/artemhp/wifi/os/linux/../../common/rtmp_mcu.c:356:2: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ULONG’ [-Wformat]
CC [M] /home/artemhp/wifi/os/linux/../../os/linux/cfg80211.o
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:679:2: warning: ‘enum tx_power_setting’ declared inside parameter list [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:679:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:678:29: error: parameter 2 (‘Type’) has incomplete type
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:676:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1355:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1355:2: warning: (near initialization for ‘CFG80211_Ops.set_channel’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1378:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1378:2: warning: (near initialization for ‘CFG80211_Ops.add_key’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1379:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1379:2: warning: (near initialization for ‘CFG80211_Ops.get_key’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1380:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1380:2: warning: (near initialization for ‘CFG80211_Ops.del_key’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1381:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1381:2: warning: (near initialization for ‘CFG80211_Ops.set_default_key’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1388:2: warning: initialization from incompatible pointer type [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:1388:2: warning: (near initialization for ‘CFG80211_Ops.rfkill_poll’) [enabled by default]
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_Scaning’:
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:2062:2: error: too few arguments to function ‘ieee80211_channel_to_frequency’
include/net/cfg80211.h:2224:12: note: declared here
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c: In function ‘CFG80211_SupBandInit’:
/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.c:2622:3: error: too few arguments to function ‘ieee80211_channel_to_frequency’
include/net/cfg80211.h:2224:12: note: declared here
make[2]: *** [/home/artemhp/wifi/os/linux/../../os/linux/cfg80211.o] Error 1
make[1]: *** [_module_/home/artemhp/wifi/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-24-generic-pae'
make: *** [LINUX] Error 2
Присматриваюсь к руководству по установке:
$make
# compile driver source code
# To fix "error: too few arguments to function ¡¥iwe_stream_add_event"
=> $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
Не понятно мне, куда писать $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
Если пишу прямо в терминал, то ничего толкового не происходит: patch: **** Can't open patch file os/linux/sta_ioctl.c.patch : No such file or directory