RTL8188 "Set Mode" (8B06) 问题

在使用RTL8188过程中,想要使8188进入monitor模式,使用如下设置指令:

iwconfig ra0 mode monitor

但是出现如下打印:

Error for wireless request "Set Mode" (8B06) :
    SET failed on device ra0 ; Operation not supported.
device ra0 entered promiscuous mode

提示不支持这个操作,以为是iwconfig不支持,但是查看iwconfig是支持设置模式的

~ # iwconfig --help
Usage: iwconfig [interface]
                interface essid {NNN|any|on|off}
                interface mode {managed|ad-hoc|master|...}
                interface freq N.NNN[k|M|G]
                interface channel N
                interface bit {N[k|M|G]|auto|fixed}
                interface rate {N[k|M|G]|auto|fixed}
                interface enc {NNNN-NNNN|off}
                interface key {NNNN-NNNN|off}
                interface power {period N|timeout N|saving N|off}
                interface nickname NNN
                interface nwid {NN|on|off}
                interface ap {N|off|auto}
                interface txpower {NmW|NdBm|off|auto}
                interface sens N
                interface retry {limit N|lifetime N}
                interface rts {N|auto|fixed|off}
                interface frag {N|auto|fixed|off}
                interface modulation {11g|11a|CCK|OFDMg|...}
                interface commit 
       Check man pages for more details.
~ # 

随后查看驱动源码,发现驱动源码默认是关闭monitor模式的,如下:

CONFIG_WIFI_MONITOR = n

将n改写为y,然后重新编译驱动,烧录进设备,测试可以正常设置为monitor模式。

猜你喜欢

转载自blog.csdn.net/u011003120/article/details/96166042