Git Product home page Git Product logo

netgear-a6210's People

Contributors

bytewarrior avatar jonipalosaari avatar jurobystricky avatar witi83 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netgear-a6210's Issues

[ArchLinux]My Kde frozen with the A6210 plug in

I built the driver with kernel 4.8.6-1-ARCH.
After reboot my desktop was frozen (I only can see my wallpaper)
Once I unplug the dongle everything can be load successfully.
Anyone can help?

PS(with the dongle plug in, using sudo will also lead to frozen.

Manjaro; can't see any wifi networks

I have the driver installed, the computer can see the device is installed perfectly fine. I have tried an old version of this driver as well as the latest. I have also tried downgrading the built in network manager.
This used to work but recently I ran some updates on my system and it stopped working.
I'm happy to give any details if asked.

additionally, I've tried sudo wifi-menu which found no networks.

Wifi activity LED not working

Hi,

I realise the A6210 does not appear to use an activity LED but I have compiled the driver with the ASUS USB-N53_B1 USB id added for the Raspberry Pi and the LED does not work on that one, otherwise it appears to be working just fine. Good job you've done.

Can you advise me on how I can get the LED working?

MrEngman

No network found - Arch linux

Hello I successfully builded upt the driver but when I check the network list it says not networks . I'm using Arch linux as well the Netgear WNDA3100v3 stick. I have tried restarting the network manager but still not networks. Someone help me with this?

Driver fails to start with kernels 4.8, 4.9 and kernel hangs

I am getting the following error when trying to run the driver on a Raspberry Pi B+ ARMv6 and the Pi appears to hang.

The error is identical on kernels 4.8.13, 4.9.0 and 4.9.2 other than the actual address values and the two lines

Jan 10 02:45:07 raspberrypi kernel: [   11.825112] ERROR mt7662u_sta:
Jan 10 02:45:07 raspberrypi kernel: [   11.825119] Failed to allocate memory - TxRxRing

appear as one with kernel 4.8.13.

Jan 10 04:07:03 raspberrypi kernel: [ 11.894239] ERROR mt7662u_sta:Failed to allocate memory - TxRxRing

Error on Raspberry Pi kernel 4.9.2, with 4.9.0 and 4.8.13 identical.

Jan 10 02:45:07 raspberrypi kernel: [    4.431064] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
Jan 10 02:45:07 raspberrypi kernel: [    4.572694] usb 1-1.2: New USB device found, idVendor=0b05, idProduct=180b
Jan 10 02:45:07 raspberrypi kernel: [    4.582793] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 10 02:45:07 raspberrypi kernel: [    4.593193] usb 1-1.2: Product: 802.11ac WLAN
Jan 10 02:45:07 raspberrypi kernel: [    4.600569] usb 1-1.2: Manufacturer: MediaTek Inc.
Jan 10 02:45:07 raspberrypi kernel: [    4.608335] usb 1-1.2: SerialNumber: 000000000
Jan 10 02:45:07 raspberrypi kernel: [    7.796949] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
Jan 10 02:45:07 raspberrypi kernel: [    8.534235] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Jan 10 02:45:07 raspberrypi kernel: [   11.611994] mt7662u_sta: loading out-of-tree module taints kernel.
Jan 10 02:45:07 raspberrypi kernel: [   11.823296] rtusb init rt2870 --->
Jan 10 02:45:07 raspberrypi kernel: [   11.824968]
Jan 10 02:45:07 raspberrypi kernel: [   11.824968] === pAd = dd24d000, size = 1181608 ===
Jan 10 02:45:07 raspberrypi kernel: [   11.824968]
Jan 10 02:45:07 raspberrypi kernel: [   11.824979] driver version: 3.0.0.1 (Jan 10 2017 00:35:34) .
Jan 10 02:45:07 raspberrypi kernel: [   11.825048] <-- ERROR in Alloc Bulk buffer for RxContext!
Jan 10 02:45:07 raspberrypi kernel: [   11.825054] ---> RTMPFreeTxRxRingMemory
Jan 10 02:45:07 raspberrypi kernel: [   11.825107] <--- RTMPFreeTxRxRingMemory
Jan 10 02:45:07 raspberrypi kernel: [   11.825112] ERROR mt7662u_sta:
Jan 10 02:45:07 raspberrypi kernel: [   11.825119] Failed to allocate memory - TxRxRing
Jan 10 02:45:07 raspberrypi kernel: [   11.825171] ------------[ cut here ]------------
Jan 10 02:45:07 raspberrypi kernel: [   11.846742] Modules linked in: mt7662u_sta(O+) cfg80211 rfkill snd_bcm2835 snd_pcm snd_timer snd bcm2835_gpiomem uio_pdrv_genir$
Jan 10 02:45:07 raspberrypi kernel: [   11.864945] CPU: 0 PID: 131 Comm: systemd-udevd Tainted: G           O    4.9.2+ #945
Jan 10 02:45:07 raspberrypi kernel: [   11.878466] Hardware name: BCM2835
Jan 10 02:45:07 raspberrypi kernel: [   11.884672] task: da5a0da0 task.stack: da6a6000
Jan 10 02:45:07 raspberrypi kernel: [   11.892053] PC is at kfree+0x144/0x18c
Jan 10 02:45:07 raspberrypi kernel: [   11.899696] LR is at os_free_mem+0x24/0x3c [mt7662u_sta]
Jan 10 02:45:07 raspberrypi kernel: [   11.907886] pc : [<c01342c4>]    lr : [<bf22299c>]    psr: 40000113
Jan 10 02:45:07 raspberrypi kernel: [   11.907886] sp : da6a7b68  ip : da6a7b90  fp : da6a7b8c
Jan 10 02:45:07 raspberrypi kernel: [   11.924889] r10: 0011fb24  r9 : 0011fb30  r8 : da6a7c0c
Jan 10 02:45:07 raspberrypi kernel: [   11.932875] r7 : bf29abf0  r6 : bf22299c  r5 : dd24d000  r4 : dd24d000
Jan 10 02:45:07 raspberrypi kernel: [   11.942175] r3 : db4292d4  r2 : 00000000  r1 : 00000000  r0 : dd24d000
Jan 10 02:45:07 raspberrypi kernel: [   11.951365] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Jan 10 02:45:07 raspberrypi kernel: [   11.961243] Control: 00c5387d  Table: 1a6ac008  DAC: 00000055
Jan 10 02:45:07 raspberrypi kernel: [   12.566887] [<c01342c4>] (kfree) from [<bf22299c>] (os_free_mem+0x24/0x3c [mt7662u_sta])
Jan 10 02:45:07 raspberrypi kernel: [   12.584767] [<bf22299c>] (os_free_mem [mt7662u_sta]) from [<bf1e5954>] (RTMPAllocAdapterBlock+0xcc/0x300 [mt7662u_sta])
Jan 10 02:45:07 raspberrypi kernel: [   12.605438] [<bf1e5954>] (RTMPAllocAdapterBlock [mt7662u_sta]) from [<bf24fa9c>] (rtusb_probe+0x80/0x478 [mt7662u_sta])
Jan 10 02:45:07 raspberrypi kernel: [   12.625265] [<bf24fa9c>] (rtusb_probe [mt7662u_sta]) from [<c0416050>] (usb_probe_interface+0x164/0x2dc)
Jan 10 02:45:07 raspberrypi kernel: [   12.642712] [<c0416050>] (usb_probe_interface) from [<c03b0928>] (driver_probe_device+0x214/0x2c8)
Jan 10 02:45:07 raspberrypi kernel: [   12.659503] [<c03b0928>] (driver_probe_device) from [<c03b0a98>] (__driver_attach+0xbc/0xc0)
Jan 10 02:45:07 raspberrypi kernel: [   12.675756] [<c03b0a98>] (__driver_attach) from [<c03aea98>] (bus_for_each_dev+0x7c/0xb0)
Jan 10 02:45:07 raspberrypi kernel: [   12.691742] [<c03aea98>] (bus_for_each_dev) from [<c03b02b8>] (driver_attach+0x28/0x30)
Jan 10 02:45:07 raspberrypi kernel: [   12.707549] [<c03b02b8>] (driver_attach) from [<c03afe54>] (bus_add_driver+0x19c/0x224)
Jan 10 02:45:07 raspberrypi kernel: [   12.723351] [<c03afe54>] (bus_add_driver) from [<c03b1148>] (driver_register+0x88/0x108)
Jan 10 02:45:07 raspberrypi kernel: [   12.739259] [<c03b1148>] (driver_register) from [<c0414aa0>] (usb_register_driver+0x70/0x13c)
Jan 10 02:45:07 raspberrypi kernel: [   12.756692] [<c0414aa0>] (usb_register_driver) from [<bf2bd074>] (init_module+0x74/0xa0 [mt7662u_sta])
Jan 10 02:45:07 raspberrypi kernel: [   12.774986] [<bf2bd074>] (init_module [mt7662u_sta]) from [<c0009a1c>] (do_one_initcall+0x4c/0x188)
Jan 10 02:45:07 raspberrypi kernel: [   12.791982] [<c0009a1c>] (do_one_initcall) from [<c00e3c54>] (do_init_module+0x6c/0x1dc)
Jan 10 02:45:07 raspberrypi kernel: [   12.807916] [<c00e3c54>] (do_init_module) from [<c00836e0>] (load_module+0x1a64/0x1fb8)
Jan 10 02:45:07 raspberrypi kernel: [   12.823747] [<c00836e0>] (load_module) from [<c0083e0c>] (SyS_finit_module+0x9c/0xac)
Jan 10 02:45:07 raspberrypi kernel: [   12.839413] [<c0083e0c>] (SyS_finit_module) from [<c000fe20>] (ret_fast_syscall+0x0/0x1c)
Jan 10 02:45:07 raspberrypi kernel: [   12.865485] ---[ end trace bfd69d325eeef2e8 ]---
Jan 10 02:45:07 raspberrypi kernel: [   16.000652] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:217084k SSFS
Jan 10 02:45:08 raspberrypi kernel: [   16.684760] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
Jan 10 02:45:08 raspberrypi kernel: [   16.700181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Jan 10 02:45:27 raspberrypi kernel: [   36.270824] random: crng init done

Also when compiling for kernels 3.18, 4.0, 4.1, 4.4, 4.8 or 4.9 I get the same following warnings

  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../sta/sta_cfg.o
/home/richard/src-4.8/Netgear-A6210/os/linux/../../sta/sta_cfg.c: In function ‘RTMPIoctlShow’:
/home/richard/src-4.8/Netgear-A6210/os/linux/../../sta/sta_cfg.c:5031:11: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
   #pragma GCC diagnostic ignored "-Wdate-time"
           ^
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../sta/sta.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.o
In file included from /home/richard/src-4.8/Netgear-A6210/include/os/rt_linux.h:41:0,
                 from /home/richard/src-4.8/Netgear-A6210/include/rtmp_os.h:30,
                 from /home/richard/src-4.8/Netgear-A6210/include/rtmp_comm.h:64,
                 from /home/richard/src-4.8/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c:33:
/home/richard/src-4.8/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_giwscan’:
./include/net/iw_handler.h:559:9: warning: array subscript is below array bounds [-Warray-bounds]
   memcpy(stream + point_len, extra, iwe->u.data.length);
         ^
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../mgmt/mgmt_vht.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/vht.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/crypt_md5.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/crypt_aes.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/mlme.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_wep.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/action.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_data.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/rtmp_init.o
/home/richard/src-4.8/Netgear-A6210/os/linux/../../common/rtmp_init.c: In function ‘RTMPAllocAdapterBlock’:
/home/richard/src-4.8/Netgear-A6210/os/linux/../../common/rtmp_init.c:106:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat=]
   DBGPRINT(RT_DEBUG_OFF, ("\n=== pAd = %p, size = %lu ===\n\n",
   ^
/home/richard/src-4.8/Netgear-A6210/os/linux/../../common/rtmp_init.c:110:10: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
  #pragma GCC diagnostic ignored "-Wdate-time"
          ^
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_aes.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_sync.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/eeprom.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_info.o
/home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_info.c: In function ‘Set_DriverVersion_Proc’:
/home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_info.c:34:10: warning: unknown option after ‘#pragma GCC diagnostic’ kind [-Wpragmas]
  #pragma GCC diagnostic ignored "-Wdate-time"
          ^
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_cfg.o
  CC [M]  /home/richard/src-4.8/Netgear-A6210/os/linux/../../common/cmm_wpa.o

Compile this driver for Synology DS716+II

Hello,
May I use these file to compile a new driver for my Synology DS716+II ? I want to add a wifi/usb adapter but it is not recognized when I plug it to my Nas.
This is a Netgear A6210, there is not an official Linux driver but I found these sources.
I am not a linux expert and I need some help...

Merci

Problems with Netgear WNDA3100v3 N600 WiFi USB Adapter

Hi,

thanks very much for contributing this driver. I recently bought a Netgear WNDA3100v3 N600 WiFi USB Adapter which I am trying to get to work. I cloned your repo at 736f47b, built the driver and installed it without any problems. I am on Debian Testing, kernel 4.7:

Linux lorenz 4.7.0-1-amd64 #1 SMP Debian 4.7.5-1 (2016-09-26) x86_64 GNU/Linux

I have restarted network manager as per instructions. When I plug in the device, the driver kicks in as expected and I see a list of Wireless networks to connect to. However, when I try to connect to my network I get an error:

Connection Failed: Activation of network connection failed

Interestingly enough, sometimes the list goes down to just one network, but most of the time it shows me quite a few networks. Not sure if this is relevant. At any rate, I looked at dmesg, and I see this repeated a couple of times every second (apologies for the large paste):

[1948357.442219] ERROR mt766u_sta:RTMPSetTimer failed, Halt in Progress!
[1948357.468970] andes_usb_erasefw
[1948357.469096] ==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0x20b
[1948357.473294] tx_kickout_fail_count = 0
[1948357.473296] tx_timeout_fail_count = 0
[1948357.473297] rx_receive_fail_count = 0
[1948357.473297] alloc_cmd_msg = 21
[1948357.473298] free_cmd_msg = 21
[1948357.527699] RTMP_TimerListRelease: release timer obj ffffc90003fc24b0!
[1948357.527702] RTMP_TimerListRelease: release timer obj ffffc90003fc2528!
[1948357.527703] RTMP_TimerListRelease: release timer obj ffffc90003fc25a0!
[1948357.527705] RTMP_TimerListRelease: release timer obj ffffc90003fc2438!
[1948357.527706] RTMP_TimerListRelease: release timer obj ffffc90003fc22d0!
[1948357.527707] RTMP_TimerListRelease: release timer obj ffffc90003fc2348!
[1948357.527708] RTMP_TimerListRelease: release timer obj ffffc90003f53fa0!
[1948357.527709] RTMP_TimerListRelease: release timer obj ffffc90003f42d78!
[1948357.527710] RTMP_TimerListRelease: release timer obj ffffc90003f42df8!
[1948357.527711] RTMP_TimerListRelease: release timer obj ffffc90003f54128!
[1948357.527712] RTMP_TimerListRelease: release timer obj ffffc90003f53eb0!
[1948357.527713] RTMP_TimerListRelease: release timer obj ffffc90003f540b0!
[1948357.538595] ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x208, Reg-WlanFunCtrl=0x209
[1948357.539845] -->RTUSBVendorReset
[1948357.559813] <--RTUSBVendorReset
[1948357.560096] fw version:0.0.00 build:1
[1948357.560097] build time:201406241830____
[1948357.560101] fw for E3 IC
[1948357.560102] ilm length = 59312(bytes)
[1948357.560103] dlm length = 32068(bytes)
[1948357.560723] loading fw........
[1948357.621096] cfg_mode=5
[1948357.621197] Key1Str is Invalid key length(0) or Type(0)
[1948357.621205] Key2Str is Invalid key length(0) or Type(0)
[1948357.621213] Key3Str is Invalid key length(0) or Type(0)
[1948357.621221] Key4Str is Invalid key length(0) or Type(0)
[1948357.621403] USBAggregation = 1
[1948357.621405] 1. Phy Mode = 31
[1948357.621406] NVM is Efuse and its size =1d[1e0-1fc] 
[1948357.650223] get_chl_grp:illegal channel (167)
[1948357.650225] get_chl_grp:illegal channel (167)
[1948357.650226] get_chl_grp:illegal channel (169)
[1948357.650227] get_chl_grp:illegal channel (169)
[1948357.650228] get_chl_grp:illegal channel (171)
[1948357.650228] get_chl_grp:illegal channel (171)
[1948357.650229] get_chl_grp:illegal channel (173)
[1948357.650230] get_chl_grp:illegal channel (173)
[1948357.652847] Country Region from e2p = ffff
[1948357.652850] NICReadEEPROMParameters():Err! chip not support 5G band 0!
[1948357.652851] cfg_mode=9
[1948357.652937] RTMPSetPhyMode: channel is out of range, use first channel=1 
[1948357.652938] RTMPSetPhyMode: Update for STA
[1948357.669603] mt76x2_get_external_lna_gain::LNA type=0x11, BLNAGain=0x0, ALNAGain0=0x0, ALNAGain1=0x0, ALNAGain2=0x0
[1948357.669607] 2. Phy Mode = 14
[1948357.669608] 3. Phy Mode = 14
[1948357.669851] andes_usb_fw_init
[1948357.884482] AntCfgInit: primary/secondary ant 0/1
[1948357.884487] andes_load_cr:cr_type(2)
[1948357.885727] ChipStructAssign(): MT76x2 hook !
[1948357.885976] ---> InitFrequencyCalibration
[1948357.885978] InitFrequencyCalibrationMode:Unknow mode = 3
[1948357.885979] InitFrequencyCalibration: frequency offset in the EEPROM = 168
[1948357.885981] <--- InitFrequencyCalibration
[1948357.885988] RTMPSetPhyMode: Update for STA
[1948357.890229] MCS Set = ff ff 00 00 01
[1948357.890352] 80211> re-init bands...
[1948357.890354] 80211> CurTxPower = 20 dBm
[1948357.890357] ====> Radar Channel 52
[1948357.890358] ====> Radar Channel 54
[1948357.890359] ====> Radar Channel 56
[1948357.890361] ====> Radar Channel 60
[1948357.890362] ====> Radar Channel 62
[1948357.890372] ====> Radar Channel 64
[1948357.890373] ====> Radar Channel 100
[1948357.890374] ====> Radar Channel 104
[1948357.890376] 80211> TxStream = 2
[1948357.890381] Chan 167 (frq 5835):	not allowed!
[1948357.890382] Chan 169 (frq 5845):	not allowed!
[1948357.890384] Chan 171 (frq 5855):	not allowed!
[1948357.890385] Chan 173 (frq 5865):	not allowed!
[1948357.890386] Chan 184 (frq 4920):	not allowed!
[1948357.890388] Chan 188 (frq 4940):	not allowed!
[1948357.890389] Chan 192 (frq 4960):	not allowed!
[1948357.890390] Chan 196 (frq 4980):	not allowed!
[1948357.890392] Chan 208 (frq 6040):	not allowed!
[1948357.890393] Chan 212 (frq 6060):	not allowed!
[1948357.890394] Chan 216 (frq 6080):	not allowed!
[1948357.890396] RTMPDrvOpen(1):Check if PDMA is idle!
[1948357.890480] RTMPDrvOpen(2):Check if PDMA is idle!
[1948357.897530] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT
[1948357.904979] TX0 power compensation = 0x38
[1948357.905227] TX1 power compensation = 0x38

Also, I never get as far as being asked for a password.

Does this provide any clues as to what could be going wrong?

Many thanks for your time.

Marco

5GHz -25dBm Access Point not present

From Windows, using Netgear Genie, I can see it and connect. When I boot the same system into Linux (3.13.0-100-generic Ubuntu), it is not there. Everything is in close proximity (within 2 meters). I also have a non-PC Linux system, and it sees -25dBm for the access point signal. It is an open access point.

lsusb:
Bus 003 Device 003: ID 0846:9014 NetGear, Inc.

This is a NetGear N600.

Last change I have:
commit 736f47b (HEAD, origin/master, origin/HEAD, master)
Merge: 7c0dee7 f4da44e
Author: jurobystricky [email protected]
Date: Tue Oct 11 13:15:59 2016 -0700

Merge pull request #35 from witi83/master

Support for Kernel > 4.7 and <= 4.8.x

[Patch] Support for Kernel 4.7

Hi @jurobystricky,

here is a first patch to get this driver up and running under Kernel 4.7. But I'm unsure whether this is the right place to define this stuff:

diff --git a/include/cfg80211.h b/include/cfg80211.h
index 275cf39..a402a2a 100644
--- a/include/cfg80211.h
+++ b/include/cfg80211.h
@@ -34,6 +34,13 @@ typedef enum _NDIS_HOSTAPD_STATUS {

 typedef struct __CFG80211_CB {

+    #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
+    #define ieee80211_band nl80211_band
+    #define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
+    #define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
+    #define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
+    #endif
+
        /* we can change channel/rate information on the fly so we backup them */
        struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
        struct ieee80211_channel *pCfg80211_Channels;

What do you think?

Cheers,
Witi

kernel panic on ubuntu @RTMPSetSupportMCS

commit 7c0dee7
environment : ubuntu 14.04 (trusty tahr), 32-bit, kernel 3.13.0.87
panic happens during system init, easily reproducible

20160907_230619

OCR-translated text below (subject to typos)

[ 32.566242] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: f9acb177 
[ 32.566292] CPU: 3 PID: 1302 Comm: RtmpMlmeTask Tainted: G O% 3,13.0-87-generic #133-Ubuntu 
[ 32.566330] Hardware name: MSI MS-7758/B75A-G43 (MS-7758), BIOS U10,0 02/21/2012 
[ 32.566361] 00000086 00000086 eca87db8 c165d3ed f9942f40 00000001 eca87dd8 c16580a7
[ 32.566404] c183bec8 clacic80 00000008 f9942f40 00000001 f988c000 eca87de8 c105777e
[ 32.566447] c183beec f9acb177 eca87e44 f9acb/77 01010000 00000000 00000000 edc04b67 
[ 32.566490] Call Trace: 
[ 32.566507] [<c165d3ed>] dump_stack+Ox58/0x72
[ 32.566541] [<c16580a7>] panic+0x87/0x18b 
[ 32.566564] [<c105777e>] __stack_chk_fail+Oxle/Ox20 
[ 32.566603] [<f9acb177>] ? RTMPSetSupportMCS+0x627/0x650 [mt7662u_sta] 
[ 32.566643] [<f9acb177>] RTMPSetSupportMCS+0x627/0x650 [mt7662u_sta] 
[ 32.566683] [<f9a76290>] PeerAssoclispAction+0x3e0/0x470 [mt7662u_sta] 
[ 32.566716] [<c103040a>] ? mce_setup+Oxaa/Ox120 
[ 32.566747] [<f9a9907e>] MlmeThread+0x27e/Ox4d0 [mt7662u_sta] 
[ 32.566785] [<f9a98e00>] ? ARC4_Discard_ReyLength+Ox60/0x60 [mt7662u_sta] 
[ 32.566817] [<c107678b>] kthread+Ox9b/OxbO
[ 32.566838] [<c166b777>] ret_from_kernel_thread+Ox1b/Ox28
[ 32.566862] [<c10766f0>] ? kthread_create_on_node+Ox140/0x140 
[ 32.566892] drm_kms_helper: panic occurred, switching back to text console

Working fine on CentOS 7 (4.8 kernel) but shutdown/restart hangs

Installed kernel 4.8 on CentOS 7 and run make (with the fix listed here for 4.7).

Driver is working properly but I can no longer do a restart or shutdown (need to press the power button).

When I do not insert the A6210 and boot I can properly shutdown/restart.

I can see a screen with 1 page of a dump of the driver but that's it (as the system stalled).

Anyway to fix this or maybe some hints on how to try to find out why this is happening?

Is there anyone else not able to shutdown when the A6210 is active?

Much appreciated.

System crashes on connect [4.7.0-1-ARCH]

Used:

  • Arch Linux 64 Bit with latest updates
  • Netgear A6210
  • mt7662u_sta

Just tried to build the driver for the newest kernel with this patch #24. Using NetworkManager everything seems fine at first, although the Mac is shown as 00:00:00:00:00:00. When trying to connect to an access point mt7662u_sta crashes, then X11 and then the whole system.

[  747.328092] usb 2-1.2: new high-speed USB device number 4 using ehci-pci
[  747.989645] rtusb init rt2870 --->
[  747.990002] 
               === pAd = ffffc90000d73000, size = 1292952 ===

[  747.990008] driver version: 3.0.0.1 (Aug 11 2016 23:43:18) .
[  747.990756] ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 1, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0x20a
[  748.001389] RtmpChipOpsEepromHook::e2p_type=0, inf_Type=2
[  748.001404] RtmpEepromGetDefault::e2p_dafault=1
[  748.001883] NVM is EFUSE mode
[  748.001888] Endpoint(8) is for In-band Command
[  748.001891] Endpoint(4) is for WMM0 AC0
[  748.001904] Endpoint(5) is for WMM0 AC1
[  748.001906] Endpoint(6) is for WMM0 AC2
[  748.001908] Endpoint(7) is for WMM0 AC3
[  748.001910] Endpoint(9) is for WMM1 AC0
[  748.001912] Endpoint(84) is for Data-In
[  748.001924] Endpoint(85) is for Command Rsp
[  748.002156] 80211> CurTxPower = 20 dBm
[  748.002160] ====> Radar Channel 52
[  748.002162] ====> Radar Channel 54
[  748.002173] ====> Radar Channel 56
[  748.002175] ====> Radar Channel 60
[  748.002177] ====> Radar Channel 62
[  748.002178] ====> Radar Channel 64
[  748.002180] ====> Radar Channel 100
[  748.002182] ====> Radar Channel 104
[  748.002184] 80211> TxStream = 0
[  748.002860] usbcore: registered new interface driver rt2870
[  779.838334] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  779.839457] -->RTUSBVendorReset
[  779.859658] <--RTUSBVendorReset
[  779.861832] ...........andes_usb_chk_crc
[  779.955330] andes_usb_reset_wmt
[  779.976164] -->RTUSBVendorReset
[  779.996381] <--RTUSBVendorReset
[  779.996927] fw version:0.0.00 build:1
[  779.996934] build time:201406241830____
[  779.996949] fw for E3 IC
[  779.996953] ilm length = 59312(bytes)
[  779.996955] dlm length = 32068(bytes)
[  779.998012] loading fw........
[  780.060071] cfg_mode=5
[  780.060292] Key1Str is Invalid key length(0) or Type(0)
[  780.060308] Key2Str is Invalid key length(0) or Type(0)
[  780.060323] Key3Str is Invalid key length(0) or Type(0)
[  780.060339] Key4Str is Invalid key length(0) or Type(0)
[  780.060757] USBAggregation = 1
[  780.060761] 1. Phy Mode = 31
[  780.060763] NVM is Efuse and its size =1d[1e0-1fc] 
[  780.089975] get_chl_grp:illegal channel (167)
[  780.089992] get_chl_grp:illegal channel (167)
[  780.089995] get_chl_grp:illegal channel (169)
[  780.089997] get_chl_grp:illegal channel (169)
[  780.090000] get_chl_grp:illegal channel (171)
[  780.090002] get_chl_grp:illegal channel (171)
[  780.090004] get_chl_grp:illegal channel (173)
[  780.090006] get_chl_grp:illegal channel (173)
[  780.092468] Country Region from e2p = ffff
[  780.105729] mt76x2_get_external_lna_gain::LNA type=0x0, BLNAGain=0xffffff8d, ALNAGain0=0xffffff89, ALNAGain1=0xffffff88, ALNAGain2=0xffffff87
[  780.105739] 2. Phy Mode = 31
[  780.105743] 3. Phy Mode = 31
[  780.105972] andes_usb_fw_init
[  780.281858] AntCfgInit: primary/secondary ant 0/1
[  780.281868] andes_load_cr:cr_type(2)
[  780.283114] ChipStructAssign(): MT76x2 hook !
[  780.283123] ---> InitFrequencyCalibration
[  780.283127] InitFrequencyCalibrationMode:Unknow mode = 3
[  780.283131] InitFrequencyCalibration: frequency offset in the EEPROM = 168
[  780.283144] <--- InitFrequencyCalibration
[  780.283160] RTMPSetPhyMode: channel is out of range, use first channel=1 
[  780.283163] RTMPSetPhyMode: Update for STA
[  780.287358] MCS Set = ff ff 00 00 01
[  780.287479] 80211> re-init bands...
[  780.287483] 80211> CurTxPower = 20 dBm
[  780.287497] ====> Radar Channel 52
[  780.287500] ====> Radar Channel 54
[  780.287502] ====> Radar Channel 56
[  780.287504] ====> Radar Channel 60
[  780.287506] ====> Radar Channel 62
[  780.287508] ====> Radar Channel 64
[  780.287510] ====> Radar Channel 100
[  780.287512] ====> Radar Channel 104
[  780.287515] 80211> TxStream = 2
[  780.287529] Chan 167 (frq 5835): not allowed!
[  780.287532] Chan 169 (frq 5845): not allowed!
[  780.287534] Chan 171 (frq 5855): not allowed!
[  780.287537] Chan 173 (frq 5865): not allowed!
[  780.287539] Chan 184 (frq 4920): not allowed!
[  780.287541] Chan 188 (frq 4940): not allowed!
[  780.287544] Chan 192 (frq 4960): not allowed!
[  780.287546] Chan 196 (frq 4980): not allowed!
[  780.287548] Chan 208 (frq 6040): not allowed!
[  780.287550] Chan 212 (frq 6060): not allowed!
[  780.287552] Chan 216 (frq 6080): not allowed!
[  780.287555] RTMPDrvOpen(1):Check if PDMA is idle!
[  780.287733] RTMPDrvOpen(2):Check if PDMA is idle!
[  780.288729] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT
[  780.315984] andes_usb_erasefw
[  780.316108] ==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0x20b
[  780.323176] receive cmd msg fail(-2)
[  780.323260] tx_kickout_fail_count = 0
[  780.323265] tx_timeout_fail_count = 0
[  780.323267] rx_receive_fail_count = 0
[  780.323269] alloc_cmd_msg = 10
[  780.323272] free_cmd_msg = 10
[  780.378880] RTMP_TimerListRelease: release timer obj ffffc90000df54b0!
[  780.378887] RTMP_TimerListRelease: release timer obj ffffc90000df5528!
[  780.378890] RTMP_TimerListRelease: release timer obj ffffc90000df55a0!
[  780.378892] RTMP_TimerListRelease: release timer obj ffffc90000df5438!
[  780.378894] RTMP_TimerListRelease: release timer obj ffffc90000df52d0!
[  780.378896] RTMP_TimerListRelease: release timer obj ffffc90000df5348!
[  780.378898] RTMP_TimerListRelease: release timer obj ffffc90000d86fa0!
[  780.378900] RTMP_TimerListRelease: release timer obj ffffc90000d75d78!
[  780.378902] RTMP_TimerListRelease: release timer obj ffffc90000d75df8!
[  780.378904] RTMP_TimerListRelease: release timer obj ffffc90000d87128!
[  780.378906] RTMP_TimerListRelease: release timer obj ffffc90000d86eb0!
[  780.378908] RTMP_TimerListRelease: release timer obj ffffc90000d870b0!
[  780.390663] ==>rlt_wlan_chip_onoff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x208, Reg-WlanFunCtrl=0x209
[  780.392128] -->RTUSBVendorReset
[  780.412263] <--RTUSBVendorReset
[  780.414484] ...........andes_usb_chk_crc
[  780.507643] andes_usb_reset_wmt
[  780.528442] -->RTUSBVendorReset
[  780.548620] <--RTUSBVendorReset
[  780.549121] fw version:0.0.00 build:1
[  780.549126] build time:201406241830____
[  780.549143] fw for E3 IC
[  780.549147] ilm length = 59312(bytes)
[  780.549149] dlm length = 32068(bytes)
[  780.550460] loading fw........
[  780.611849] cfg_mode=5
[  780.612274] Key1Str is Invalid key length(0) or Type(0)
[  780.612306] Key2Str is Invalid key length(0) or Type(0)
[  780.612338] Key3Str is Invalid key length(0) or Type(0)
[  780.612371] Key4Str is Invalid key length(0) or Type(0)
[  780.613130] USBAggregation = 1
[  780.613134] 1. Phy Mode = 31
[  780.613136] NVM is Efuse and its size =1d[1e0-1fc] 
[  780.642880] get_chl_grp:illegal channel (167)
[  780.642888] get_chl_grp:illegal channel (167)
[  780.642891] get_chl_grp:illegal channel (169)
[  780.642894] get_chl_grp:illegal channel (169)
[  780.642896] get_chl_grp:illegal channel (171)
[  780.642898] get_chl_grp:illegal channel (171)
[  780.642901] get_chl_grp:illegal channel (173)
[  780.642903] get_chl_grp:illegal channel (173)
[  780.645373] Country Region from e2p = ffff
[  780.657875] mt76x2_get_external_lna_gain::LNA type=0x0, BLNAGain=0xffffff8d, ALNAGain0=0xffffff89, ALNAGain1=0xffffff88, ALNAGain2=0xffffff87
[  780.657881] 2. Phy Mode = 31
[  780.657885] 3. Phy Mode = 31
[  780.658122] andes_usb_fw_init
[  780.835138] AntCfgInit: primary/secondary ant 0/1
[  780.835157] andes_load_cr:cr_type(2)
[  780.836523] ChipStructAssign(): MT76x2 hook !
[  780.836755] ---> InitFrequencyCalibration
[  780.836760] InitFrequencyCalibrationMode:Unknow mode = 3
[  780.836765] InitFrequencyCalibration: frequency offset in the EEPROM = 168
[  780.836768] <--- InitFrequencyCalibration
[  780.836788] RTMPSetPhyMode: channel is out of range, use first channel=1 
[  780.836791] RTMPSetPhyMode: Update for STA
[  780.841135] MCS Set = ff ff 00 00 01
[  780.841257] 80211> re-init bands...
[  780.841261] 80211> CurTxPower = 20 dBm
[  780.841265] ====> Radar Channel 52
[  780.841267] ====> Radar Channel 54
[  780.841269] ====> Radar Channel 56
[  780.841272] ====> Radar Channel 60
[  780.841274] ====> Radar Channel 62
[  780.841276] ====> Radar Channel 64
[  780.841279] ====> Radar Channel 100
[  780.841281] ====> Radar Channel 104
[  780.841285] 80211> TxStream = 2
[  780.841300] Chan 167 (frq 5835): not allowed!
[  780.841303] Chan 169 (frq 5845): not allowed!
[  780.841305] Chan 171 (frq 5855): not allowed!
[  780.841308] Chan 173 (frq 5865): not allowed!
[  780.841310] Chan 184 (frq 4920): not allowed!
[  780.841313] Chan 188 (frq 4940): not allowed!
[  780.841315] Chan 192 (frq 4960): not allowed!
[  780.841318] Chan 196 (frq 4980): not allowed!
[  780.841321] Chan 208 (frq 6040): not allowed!
[  780.841323] Chan 212 (frq 6060): not allowed!
[  780.841326] Chan 216 (frq 6080): not allowed!
[  780.841329] RTMPDrvOpen(1):Check if PDMA is idle!
[  780.841511] RTMPDrvOpen(2):Check if PDMA is idle!
[  780.853817] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[  780.862878] IPv6: ADDRCONF(NETDEV_UP): enp0s25: link is not ready
[  781.049806] 80211> CFG80211_OpsPmksaFlush ==>
[  781.065661] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[  781.132664] TX0 power compensation = 0x38
[  781.132919] TX1 power compensation = 0x38
[ 1327.937283] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT
[ 1327.937321] BUG: unable to handle kernel paging request at 0000000f0013a355
[ 1327.937387] IP: [<ffffffffa0b3e4ad>] CFG80211DRV_IoctlHandle+0x138d/0x1400 [mt7662u_sta]
[ 1327.937465] PGD ab32c067 PUD 0 
[ 1327.937495] Oops: 0000 [#1] PREEMPT SMP
[ 1327.937523] Modules linked in: mt7662u_sta(O) iwldvm mac80211 iwlwifi cfg80211 ctr ccm fuse uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media wacom joydev mousedev msr snd_hda_codec_hdmi snd_hda_codec_conexant snd_hda_codec_generic arc4 mei_wdt iTCO_wdt intel_rapl iTCO_vendor_support x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm evdev input_leds mac_hid irqbypass intel_cstate intel_rapl_perf psmouse serio_raw pcspkr thermal wmi i915 thinkpad_acpi nvram drm_kms_helper snd_hda_intel battery snd_hda_codec rfkill ac fjes drm snd_hda_core snd_hwdep e1000e snd_pcm button intel_gtt snd_timer video syscopyarea snd soundcore sysfillrect sysimgblt fb_sys_fops ptp pps_core i2c_i801 i2c_algo_bit mei_me mei lpc_ich shpchp tpm_tis tpm sch_fq_codel vboxnetflt(O)
[ 1327.938203]  vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) acpi_call(O) ip_tables x_tables ext4 crc16 jbd2 mbcache algif_skcipher af_alg dm_crypt dm_mod sd_mod usbhid hid atkbd libps2 crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci libata scsi_mod sdhci_pci sdhci ehci_pci led_class ehci_hcd mmc_core usbcore usb_common i8042 serio jitterentropy_rng sha256_ssse3 sha256_generic hmac drbg ansi_cprng [last unloaded: cfg80211]
[ 1327.938633] CPU: 2 PID: 1639 Comm: NetworkManager Tainted: G           O    4.7.0-1-ARCH #1
[ 1327.938688] Hardware name: LENOVO 4299Y48/4299Y48, BIOS 8DET50WW (1.20 ) 07/07/2011
[ 1327.938738] task: ffff8800a6c90000 ti: ffff8800ce170000 task.ti: ffff8800ce170000
[ 1327.938787] RIP: 0010:[<ffffffffa0b3e4ad>]  [<ffffffffa0b3e4ad>] CFG80211DRV_IoctlHandle+0x138d/0x1400 [mt7662u_sta]
[ 1327.938872] RSP: 0018:ffff8800ce173b58  EFLAGS: 00010282
[ 1327.938908] RAX: 000000000000003c RBX: 0000000f00000004 RCX: 0000000000000000
[ 1327.938955] RDX: 0000000000000000 RSI: ffff88011e28dbe8 RDI: ffff88011e28dbe8
[ 1327.939002] RBP: ffff8800ce173c10 R08: 00000000000003ff R09: 74636f495f565244
[ 1327.939049] R10: 0000000000000000 R11: 444d43203a656c64 R12: ffff8800d4906000
[ 1327.939095] R13: 0000000000005078 R14: ffff8800ce173d08 R15: 0000000f00000004
[ 1327.939142] FS:  00007f1cf237b840(0000) GS:ffff88011e280000(0000) knlGS:0000000000000000
[ 1327.939195] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1327.939234] CR2: 0000000f0013a355 CR3: 00000000d6757000 CR4: 00000000000406e0
[ 1327.939280] Stack:
[ 1327.939297]  0000000000000000 000000003f59f4ac ffff8800ce173ba8 ffffffffa091695a
[ 1327.939355]  ffffffffa02af6ea ffff8800d4906850 ffff8800a6c50000 ffff8800d4906000
[ 1327.939414]  0000000000000009 0000000000000287 0000000000000287 ffff8800ce173bd8
[ 1327.939472] Call Trace:
[ 1327.939503]  [<ffffffffa091695a>] ? cfg80211_disconnect+0x1ea/0x200 [cfg80211]
[ 1327.939562]  [<ffffffffa02af6ea>] ? __ext4_ext_dirty+0x6a/0x90 [ext4]
[ 1327.939607]  [<ffffffff814bb059>] ? skb_dequeue+0x59/0x70
[ 1327.939646]  [<ffffffff815c5664>] ? wireless_nlevent_flush+0x54/0x90
[ 1327.939707]  [<ffffffffa0b07ea5>] RTMP_COM_IoctlHandle+0x6b5/0x780 [mt7662u_sta]
[ 1327.939758]  [<ffffffff8154b99d>] ? inetdev_event+0x3d/0x500
[ 1327.939811]  [<ffffffffa0b36d86>] CFG80211NetdevNotifierEvent+0x106/0x190 [mt7662u_sta]
[ 1327.939873]  [<ffffffff8109a34a>] notifier_call_chain+0x4a/0x70
[ 1327.939956]  [<ffffffff8109a486>] raw_notifier_call_chain+0x16/0x20
[ 1327.940009]  [<ffffffff814cb6c5>] call_netdevice_notifiers_info+0x35/0x60
[ 1327.940082]  [<ffffffff814cba55>] __dev_close_many+0x55/0x100
[ 1327.940134]  [<ffffffff814cbb8c>] dev_close_many+0x8c/0x130
[ 1327.940187]  [<ffffffff814d0fca>] dev_close.part.19+0x4a/0x70
[ 1327.940241]  [<ffffffff814d100a>] dev_close+0x1a/0x20
[ 1327.940301]  [<ffffffffa08e6d55>] cfg80211_shutdown_all_interfaces+0x45/0xb0 [cfg80211]
[ 1327.940360]  [<ffffffffa08e6e26>] cfg80211_rfkill_set_block+0x26/0x30 [cfg80211]
[ 1327.940412]  [<ffffffffa057af19>] rfkill_set_block+0x89/0x130 [rfkill]
[ 1327.940456]  [<ffffffffa057b173>] rfkill_fop_write+0x103/0x1a0 [rfkill]
[ 1327.942553]  [<ffffffff811f94d7>] __vfs_write+0x37/0x140
[ 1327.944652]  [<ffffffff811fa2a6>] vfs_write+0xb6/0x1a0
[ 1327.946727]  [<ffffffff811fb725>] SyS_write+0x55/0xc0
[ 1327.948771]  [<ffffffff815dd732>] entry_SYSCALL_64_fastpath+0x1a/0xa4
[ 1327.950794] Code: 63 e0 e9 c5 fa ff ff 48 c7 c7 98 d8 b7 a0 e8 47 1f 63 e0 e9 d8 f4 ff ff 48 c7 c6 60 2e b6 a0 48 c7 c7 48 d9 b7 a0 e8 2f 1f 63 e0 <80> bb 51 a3 13 00 01 0f 85 eb ed ff ff 83 3d bf 7e 06 00 01 0f 
[ 1327.955115] RIP  [<ffffffffa0b3e4ad>] CFG80211DRV_IoctlHandle+0x138d/0x1400 [mt7662u_sta]
[ 1327.957189]  RSP <ffff8800ce173b58>
[ 1327.959150] CR2: 0000000f0013a355
[ 1327.969373] ---[ end trace 75d2d708fd76d3fd ]---

ASUS USB-N53 B1, ubuntu 16.10: hang while uploading

First of all, thank you for your great work!

I have some issue with hanging my dongle when I upload something (especially something large). Connection simply drops, and nothing helps except reconnecting my dongle and restarting network manager.

I'm attaching some logs (dmesg output), possibly it can help:
connect.txt - after connecting my dongle (everything seems OK);
nm-restart-after-connect.txt - after starting/restarting network manager (normal work);
hang.txt - immediately after hanging;
nm-restart-after-hang.txt - restarting network manager WITHOUT disconnecting dongle after hang;
back-to-normal.txt - return to normal work (after restarting network manager in some cases).
connect.txt
nm-restart-after-connect.txt
hang.txt
nm-restart-after-hang.txt
back-to-normal.txt

Make problem (Manjaro)

export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/hitcoder/Netgear-A6210-master/os/linux/Makefile
make -C /lib/modules/4.4.11-1-MANJARO/build DBGFLAGS=-DDBG SUBDIRS=/home/hitcoder/Netgear-A6210-master/os/linux modules
make[1]: Entering directory '/usr/lib/modules/4.4.11-1-MANJARO/build'
make[1]: *** No rule to make target 'modules'.  Stop.
make[1]: Leaving directory '/usr/lib/modules/4.4.11-1-MANJARO/build'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2

The only kernel headers I can install are 4.4.13 under 4.4
There is no longer an option for 4.4.11, cannot build wifi drivers, main pc is now unusable.
Please fix ASAP because this is my main computer and my life is on my computer.

Seems to break after sleep mode

After turning the computer back on from sleep mode, the driver doesn't work right and won't connect to networks.

Furthermore, when trying to play with the network settings to resolve it, the system hangs and needs to be forcefully restarted.

(Linux Mint 17.3)

Edit: In general, attempting to turn off wireless via the GUI or console causes the system to hang

Compilation error with make - cfg80211.c

Hi,

Make failed

../os/linux/cfg80211/cfg80211.c: In function CFG80211_OpsStaDel
../os/linux/cfg80211/cfg80211.c: 2112:6 : error pMacAddr undeclared (first use in this function)
if (pMacAddr == NULL) {

ARCH - Cannot make, errors

Used:
Arch Linux 64 Bit with latest updates
Netgear A6210 (mt7612u)

I have been trying to build the new driver for the last couple of days (on and off) and keep coming up with this error. Anyone able to help? Do i need to downgrade my linux headers?

cp -f os/linux/Makefile.6 /home/luke/Netgear-A6210/os/linux/Makefile make -C /lib/modules/4.7.6-1-ARCH/build DBGFLAGS=-DDBG SUBDIRS=/home/luke/Netgear-A6210/os/linux modules make[1]: Entering directory '/usr/lib/modules/4.7.6-1-ARCH/build' CC [M] /home/luke/Netgear-A6210/os/linux/../../sta/assoc.o In file included from /home/luke/Netgear-A6210/include/os/rt_linux.h:77:0, from /home/luke/Netgear-A6210/include/rtmp_os.h:30, from /home/luke/Netgear-A6210/include/rtmp_comm.h:64, from /home/luke/Netgear-A6210/include/rt_config.h:34, from /home/luke/Netgear-A6210/os/linux/../../sta/assoc.c:28: /home/luke/Netgear-A6210/include/cfg80211.h:38:49: error: ‘IEEE80211_NUM_BANDS’ undeclared here (not in a function) struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS]; ^~~~~~~~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:290: /home/luke/Netgear-A6210/os/linux/../../sta/assoc.o] Error 1 make[1]: *** [Makefile:1458: _module_/home/luke/Netgear-A6210/os/linux] Error 2 make[1]: Leaving directory '/usr/lib/modules/4.7.6-1-ARCH/build' make: *** [Makefile:64: debug] Error 2

Let's make it work - EDUP EP-AC1605

for first: THANK YOU FOR YOUR GREAT WORK!

I have an EDUP-AC1605: all the driver compile ok, with some warnings.

I am running debian testing:

uname -a : Linux debian-netbook 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64 GNU/Linux

the USB product id is the same of EDUP-1601

The system go in kernel panic if i attach / detach the usb dongle (so I cannot restart network-manager... I need to push down power button and manually restart everything).

If I boot up with usb dongle inserted, generally in 2 or 3 mins the system hangs.

In these 2-3 minutes I cannot connect to any network wireless, BUT the scanning works: in fact I can see the networks around me.

the kernel panic log say:

Feb 24 01:07:37 debian-netbook kernel: [ 289.268321] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT Feb 24 01:07:37 debian-netbook kernel: [ 289.268362] BUG: unable to handle kernel paging request at 000000000013a355 Feb 24 01:07:37 debian-netbook kernel: [ 289.268431] IP: [<ffffffffa10e0551>] CFG80211DRV_IoctlHandle+0x10c1/0x13b0 [mt7662u_sta] Feb 24 01:07:37 debian-netbook kernel: [ 289.268516] PGD b82c5067 PUD b2330067 PMD 0 Feb 24 01:07:37 debian-netbook kernel: [ 289.268557] Oops: 0000 [#1] SMP Feb 24 01:07:37 debian-netbook kernel: [ 289.268588] Modules linked in: rfcomm tun sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm bnep nls_utf8 nls_cp437 vfat fat mt7662u_sta(O) intel_rapl intel_powerclamp coretemp kvm_intel arc4 uvcvideo kvm videobuf2_vmalloc snd_hda_codec_hdmi iwlmvm snd_hda_codec_realtek snd_hda_codec_generic videobuf2_memops mac80211 videobuf2_core v4l2_common asus_nb_wmi asus_wmi sparse_keymap iTCO_wdt iTCO_vendor_support videodev wl(PO) crct10dif_pclmul media btusb btrtl btbcm btintel bluetooth crc32_pclmul snd_soc_rt5640 snd_soc_rl6231 snd_soc_core i915 cryptd rtsx_pci_ms snd_hda_intel memstick snd_hda_codec iwlwifi snd_hda_core cfg80211 snd_hwdep drm_kms_helper joydev pcspkr evdev snd_compress sg serio_raw efi_pstore efivars rfkill wmi drm snd_pcm 8250_fintek battery ac video snd_timer dw_dmac regmap_i2c tpm_tis snd_soc_sst_acpi dw_dmac_core i2c_algo_bit tpm snd shpchp i2c_designware_platform i2c_i801 i2c_designware_core lpc_ich soundcore button processor iosf_mbi parport_pc ppdev lp parport efivarfs autofs4 ext4 crc16 mbcache jbd2 sd_mod rtsx_pci_sdmmc crc32c_intel psmouse rtsx_pci mfd_core r8169 mii ahci libahci xhci_pci libata xhci_hcd usbcore scsi_mod usb_common thermal sdhci_acpi sdhci mmc_core i2c_hid hid Feb 24 01:07:37 debian-netbook kernel: [ 289.283721] CPU: 1 PID: 481 Comm: NetworkManager Tainted: P W O 4.3.0-1-amd64 #1 Debian 4.3.5-1 Feb 24 01:07:37 debian-netbook kernel: [ 289.286307] Hardware name: ASUSTeK COMPUTER INC. X200MA/X200MA, BIOS X200MA.504 11/13/2014 Feb 24 01:07:37 debian-netbook kernel: [ 289.288883] task: ffff88009a2e5100 ti: ffff88009a2d0000 task.ti: ffff88009a2d0000 Feb 24 01:07:37 debian-netbook kernel: [ 289.291451] RIP: 0010:[<ffffffffa10e0551>] [<ffffffffa10e0551>] CFG80211DRV_IoctlHandle+0x10c1/0x13b0 [mt7662u_sta] Feb 24 01:07:37 debian-netbook kernel: [ 289.294097] RSP: 0018:ffff88009a2d3688 EFLAGS: 00010282 Feb 24 01:07:37 debian-netbook kernel: [ 289.296732] RAX: 000000000000003c RBX: 0000000000000004 RCX: 0000000000000000 Feb 24 01:07:37 debian-netbook kernel: [ 289.299387] RDX: 0000000000000000 RSI: ffff88013fd0dd58 RDI: ffff88013fd0dd58 Feb 24 01:07:37 debian-netbook kernel: [ 289.302020] RBP: ffff8800b25dc000 R08: 000000000000000a R09: 0000000000000703 Feb 24 01:07:37 debian-netbook kernel: [ 289.304631] R10: ffff880036982220 R11: 0000000000000703 R12: ffff8800b25dc850 Feb 24 01:07:37 debian-netbook kernel: [ 289.307227] R13: 0000000000005078 R14: ffff88009a2d37e0 R15: ffff88009330ac00 Feb 24 01:07:37 debian-netbook kernel: [ 289.309826] FS: 00007f7f20b23940(0000) GS:ffff88013fd00000(0000) knlGS:0000000000000000 Feb 24 01:07:37 debian-netbook kernel: [ 289.312441] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Feb 24 01:07:37 debian-netbook kernel: [ 289.315031] CR2: 000000000013a355 CR3: 00000001381d9000 CR4: 00000000001006e0 Feb 24 01:07:37 debian-netbook kernel: [ 289.317617] Stack: Feb 24 01:07:37 debian-netbook kernel: [ 289.320188] ffffffff810a6505 0000000000000000 ffffffff810a1bed 0000000000001247 Feb 24 01:07:37 debian-netbook kernel: [ 289.322808] ffffffff00000002 00000000ddf6f4db ffff8800b25dc850 00000000ddf6f4db Feb 24 01:07:37 debian-netbook kernel: [ 289.325385] ffffffffa046b8c5 0000000000000009 ffff8800b25dc898 ffff8800b25dc850 Feb 24 01:07:37 debian-netbook kernel: [ 289.327943] Call Trace: Feb 24 01:07:37 debian-netbook kernel: [ 289.330487] [<ffffffff810a6505>] ? enqueue_entity+0x445/0x9f0 Feb 24 01:07:37 debian-netbook kernel: [ 289.333039] [<ffffffff810a1bed>] ? select_idle_sibling+0xad/0x100 Feb 24 01:07:37 debian-netbook kernel: [ 289.335569] [<ffffffffa046b8c5>] ? cfg80211_disconnect+0x185/0x1a0 [cfg80211] Feb 24 01:07:37 debian-netbook kernel: [ 289.338084] [<ffffffffa0441eb6>] ? cfg80211_leave+0x26/0x40 [cfg80211] Feb 24 01:07:37 debian-netbook kernel: [ 289.340601] [<ffffffffa10aaedb>] ? RTMP_COM_IoctlHandle+0x69b/0x760 [mt7662u_sta] Feb 24 01:07:37 debian-netbook kernel: [ 289.343121] [<ffffffff8109a1fb>] ? check_preempt_curr+0x7b/0x90 Feb 24 01:07:37 debian-netbook kernel: [ 289.345631] [<ffffffffa10dc10f>] ? CFG80211NetdevNotifierEvent+0xff/0x190 [mt7662u_sta] Feb 24 01:07:37 debian-netbook kernel: [ 289.348109] [<ffffffff81091215>] ? notifier_call_chain+0x45/0x70 Feb 24 01:07:37 debian-netbook kernel: [ 289.350551] [<ffffffff81489db5>] ? __dev_close_many+0x55/0x100 Feb 24 01:07:37 debian-netbook kernel: [ 289.352992] [<ffffffff81489fba>] ? __dev_close+0x3a/0x70 Feb 24 01:07:37 debian-netbook kernel: [ 289.355402] [<ffffffff814928a6>] ? __dev_change_flags+0x96/0x150 Feb 24 01:07:37 debian-netbook kernel: [ 289.357778] [<ffffffff81492983>] ? dev_change_flags+0x23/0x60 Feb 24 01:07:37 debian-netbook kernel: [ 289.360119] [<ffffffff8149fc3b>] ? do_setlink+0x5ab/0xae0 Feb 24 01:07:37 debian-netbook kernel: [ 289.362456] [<ffffffff814a085a>] ? rtnl_newlink+0x5aa/0x8a0 Feb 24 01:07:37 debian-netbook kernel: [ 289.364791] [<ffffffff81261291>] ? security_capable+0x41/0x60 Feb 24 01:07:37 debian-netbook kernel: [ 289.367093] [<ffffffff8149efb1>] ? rtnetlink_rcv_msg+0xe1/0x240 Feb 24 01:07:37 debian-netbook kernel: [ 289.369355] [<ffffffff8147afee>] ? __kmalloc_reserve.isra.32+0x2e/0x80 Feb 24 01:07:37 debian-netbook kernel: [ 289.371608] [<ffffffff8149eed0>] ? rtnetlink_rcv+0x30/0x30 Feb 24 01:07:37 debian-netbook kernel: [ 289.373837] [<ffffffff814c1001>] ? netlink_rcv_skb+0xa1/0xc0 Feb 24 01:07:37 debian-netbook kernel: [ 289.376033] [<ffffffff8149eec4>] ? rtnetlink_rcv+0x24/0x30 Feb 24 01:07:37 debian-netbook kernel: [ 289.378200] [<ffffffff814c07b1>] ? netlink_unicast+0x121/0x1a0 Feb 24 01:07:37 debian-netbook kernel: [ 289.380378] [<ffffffff814c0cd1>] ? netlink_sendmsg+0x4a1/0x600 Feb 24 01:07:37 debian-netbook kernel: [ 289.382475] [<ffffffff811ce478>] ? rw_copy_check_uvector+0x68/0x110 Feb 24 01:07:37 debian-netbook kernel: [ 289.384500] [<ffffffff814741e0>] ? sock_sendmsg+0x30/0x40 Feb 24 01:07:37 debian-netbook kernel: [ 289.386445] [<ffffffff81474ae1>] ? ___sys_sendmsg+0x281/0x290 Feb 24 01:07:37 debian-netbook kernel: [ 289.388316] [<ffffffff810e7573>] ? futex_wake+0x93/0x170 Feb 24 01:07:37 debian-netbook kernel: [ 289.390106] [<ffffffff813fbd5d>] ? uevent_show+0xdd/0x100 Feb 24 01:07:37 debian-netbook kernel: [ 289.391818] [<ffffffff814754fe>] ? __sys_sendmsg+0x4e/0x90 Feb 24 01:07:37 debian-netbook kernel: [ 289.393452] [<ffffffff81586432>] ? system_call_fast_compare_end+0xc/0x67 Feb 24 01:07:37 debian-netbook kernel: [ 289.395024] Code: f9 df 8b 0f 41 89 4d 00 89 d1 8b 74 0f fc 41 89 74 0d fc e9 be fd ff ff 48 c7 c6 80 4e 10 a1 48 c7 c7 a0 f8 11 a1 e8 22 d7 07 e0 <80> bb 51 a3 13 00 01 0f 85 a4 f0 ff ff 83 3d fb 6e 06 00 01 0f Feb 24 01:07:37 debian-netbook kernel: [ 289.398444] RIP [<ffffffffa10e0551>] CFG80211DRV_IoctlHandle+0x10c1/0x13b0 [mt7662u_sta] Feb 24 01:07:37 debian-netbook kernel: [ 289.400116] RSP <ffff88009a2d3688> Feb 24 01:07:37 debian-netbook kernel: [ 289.401715] CR2: 000000000013a355 Feb 24 01:07:37 debian-netbook kernel: [ 289.413161] ---[ end trace b837acfcb5aa965c ]---

compiled&installed without any errors but the device doesnt start!

I recently bought EDUP EP-AC1601 wifi dongle and noticed that it doesn't work in Linux Mint 18, Kernel v4.4.0-36 This is such a shame because it performs so good in Win10 with excellent speed and quite high signal coverage.

I tried the drivers from EDUP's website, Mediatek website and i have failed to compile these drivers as you can guess and then i found this github page while searching on Google. This driver is the only one which gets complied and installed without any errors but unfortunately i couldn't make the wifi dongle work no matter what i tried. This is so strange because i didn't see any error while installing this driver.

I tried resetting network manager via terminal command, remove&insert the usb dongle, restarting pc but none helps. I don't see any activity in network manager. I can see the device getting removed and inserted via lsusb and dmesg commands but it doesn't call the necessary firmware from kernel to make it work.

Can anyone help me to get this work in Linux Mint 18 because i don't wanna use Win10 just to be able to connect to the internet!

Edup EP-AC1601

Could this driver be used with Edup EP-AC1601 with the same chipset (MT7612U) somehow?

The Dmesg shows following:

[ 14.591373] usb 3-2: New USB device found, idVendor=203a, idProduct=fffa
[ 14.591377] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 14.591380] usb 3-2: Product: Virtual Printer (Print to PDF (Mac Desktop))
[ 14.591381] usb 3-2: Manufacturer: Parallels
[ 14.591382] usb 3-2: SerialNumber: TAG11d87aca0
[ 14.598633] usblp 3-2:1.0: usblp0: USB Unidirectional printer dev 3 if 0 alt 0 proto 1 vid 0x203A pid 0xFFFA
[ 14.598650] usbcore: registered new interface driver usblp
[ 14.647250] #
[ 14.727236] #
[ 14.807267] #
[ 14.887236] #
[ 14.967208] #
[ 15.047334] #
[ 15.127406] #
[ 15.207286] #
[ 15.212339] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x9a8,pAd->Flags=0x0
[ 15.212342] JB: RTUSB_VendorRequest failed!
[ 15.287237] #
[ 15.367254] #
[ 15.447661] #
[ 15.531172] #
[ 15.611400] #
[ 15.695210] #
[ 15.775263] #
[ 15.855617] #
[ 15.939488] #
[ 16.019231] #
[ 16.024211] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x6, Idx=0x9a8,pAd->Flags=0x0
[ 16.024213] JB: RTUSB_VendorRequest failed!
[ 16.024214] VendrCmdMultiWrite_nBytes failed!
[ 16.103235] #
[ 16.183294] #
[ 16.263354] #
[ 16.343353] #
[ 16.427458] #
[ 16.507447] #
[ 16.587317] #
[ 16.667452] #
[ 16.747372] #
[ 16.827800] #
[ 16.832786] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=OUT, Req=0x42, Idx=0x230,pAd->Flags=0x0
[ 16.832790] JB: RTUSB_VendorRequest failed!
[ 16.832791] set fce dma descriptor fail
[ 16.832797] ERROR mt766u_sta:load patch failed, Status[=0x00000001]
[ 16.832946] receive cmd msg fail(-2)
[ 16.833019] tx_kickout_fail_count = 0
[ 16.833021] tx_timeout_fail_count = 0
[ 16.833021] rx_receive_fail_count = 0
[ 16.833022] alloc_cmd_msg = 1
[ 16.833022] free_cmd_msg = 1
[ 16.833023] !!! rt28xx init fail !!!
[ 16.919300] #
[ 16.999641] #
[ 17.080368] #
[ 17.159641] #
[ 17.239490] #
[ 17.319772] #
[ 17.400227] #
[ 17.479286] #
[ 17.559773] #
[ 17.639936] #
[ 17.644929] RTUSB_VendorRequest failed(-110),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x0
[ 17.644931] JB: RTUSB_VendorRequest failed!
[ 17.719426] #
[ 17.799261] #
[ 17.879321] #
[ 17.959536] #
[ 18.039552] #
[ 23.127295] xhci_hcd 0000:00:1d.6: xHCI host not responding to stop endpoint command.
[ 23.127303] xhci_hcd 0000:00:1d.6: Assuming host is dying, halting host.
[ 23.127592] xhci_hcd 0000:00:1d.6: HC died; cleaning up
[ 23.127643] #
[ 23.132637] #
[ 23.132640] RTUSB_VendorRequest failed(-19),TxFlags=0x0, ReqType=IN, Req=0x47, Idx=0x148,pAd->Flags=0x100
[ 23.132642] JB: RTUSB_VendorRequest failed!
[ 23.132643] write reg fail
[ 23.132644] write reg fail
[ 23.132654] write reg fail
[ 23.132665] write reg fail
[ 23.132665] write reg fail
[ 23.132666] write reg fail
[ 23.132667] write reg fail
[ 23.132667] write reg fail
[ 23.132668] write reg fail
[ 23.132678] write reg fail
[ 23.132689] write reg fail
[ 23.132690] write reg fail
[ 23.132691] write reg fail
[ 23.132692] write reg fail
[ 23.132692] write reg fail
[ 23.132694] write reg fail
[ 23.132819] write reg fail
[ 23.132869] write reg fail
[ 23.132870] VendrCmdMultiWrite_nBytes failed!
[ 23.132871] write reg fail
[ 23.132882] write reg fail
[ 23.132892] write reg fail
[ 23.132893] write reg fail
[ 23.132894] write reg fail
[ 23.132895] write reg fail
[ 23.132896] write reg fail
[ 23.132897] write reg fail
[ 23.133022] write reg fail
[ 23.133073] write reg fail
[ 23.133073] VendrCmdMultiWrite_nBytes failed!
[ 23.133076] !!! rt28xx init fail !!!
[ 23.133270] usb 2-1: USB disconnect, device number 2
[ 23.133371] rtusb_disconnect: unregister usbnet usb-0000:00:1d.6-1
[ 23.133376] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=wlan0!
[ 23.175208] 80211> unregister/free wireless device
[ 23.195200] ==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0xffffffff
[ 23.195203] VendrCmdMultiWrite_nBytes failed!
[ 23.195232] ---> RTMPFreeTxRxRingMemory
[ 23.195248] <--- RTMPFreeTxRxRingMemory
[ 23.195288] RTUSB disconnect successfully

struct net_device’ has no member named ‘wireless_handlers

Build failure on kernel 4.7:

/opt/Netgear-WNDA3100v3/os/linux/../../os/linux/rt_main_dev.c: In function ‘rt28xx_open’:
/opt/Netgear-WNDA3100v3/os/linux/../../os/linux/rt_main_dev.c:288:11: error: ‘struct net_device’ has no member named ‘wireless_handlers’; did
you mean ‘rx_handler’?
net_dev->wireless_handlers = (struct iw_handler_def *) &rt28xx_iw_handler_def;

5Ghz Network not Being Recongnized

I'm running the Netgear WNDA3100v3 under the latest build of this driver, and for some reason, it won't detect my 5Ghz network, but it will with other networks. It's not the router's problem, because it works in Windows. So I ran dmesg to see the issue, and I got the following:
[ 23.009905] get_chl_grp:illegal channel (167)
[ 23.009909] get_chl_grp:illegal channel (167)
[ 23.009911] get_chl_grp:illegal channel (169)
[ 23.009912] get_chl_grp:illegal channel (169)
[ 23.009912] get_chl_grp:illegal channel (171)
[ 23.009913] get_chl_grp:illegal channel (171)
[ 23.009914] get_chl_grp:illegal channel (173)
[ 23.009915] get_chl_grp:illegal channel (173)
[ 23.016908] Country Region from e2p = ffff
[ 23.016916] NICReadEEPROMParameters():Err! chip not support 5G band 0!
[ 23.016919] cfg_mode=9
[ 23.017082] RTMPSetPhyMode: channel is out of range, use first channel=1
[ 23.017084] RTMPSetPhyMode: Update for STA
[ 23.033792] mt76x2_get_external_lna_gain::LNA type=0x11, BLNAGain=0x0, ALNAGain0=0x0, ALNAGain1=0x0, ALNAGain2=0x0
[ 23.033797] 2. Phy Mode = 14
[ 23.033799] 3. Phy Mode = 14
[ 23.034037] andes_usb_fw_init
[ 23.228910] AntCfgInit: primary/secondary ant 0/1
[ 23.228914] andes_load_cr:cr_type(2)
[ 23.230158] ChipStructAssign(): MT76x2 hook !
[ 23.230161] ---> InitFrequencyCalibration
[ 23.230162] InitFrequencyCalibrationMode:Unknow mode = 3
[ 23.230163] InitFrequencyCalibration: frequency offset in the EEPROM = 168
[ 23.230164] <--- InitFrequencyCalibration
[ 23.230170] RTMPSetPhyMode: Update for STA
[ 23.234164] MCS Set = ff ff 00 00 01
[ 23.234293] 80211> re-init bands...
[ 23.234298] 80211> CurTxPower = 20 dBm
[ 23.234302] ====> Radar Channel 52
[ 23.234304] ====> Radar Channel 54
[ 23.234305] ====> Radar Channel 56
[ 23.234307] ====> Radar Channel 60
[ 23.234309] ====> Radar Channel 62
[ 23.234311] ====> Radar Channel 64
[ 23.234313] ====> Radar Channel 100
[ 23.234314] ====> Radar Channel 104
[ 23.234317] 80211> TxStream = 2
[ 23.234323] Chan 108 (frq 5540): not allowed!
[ 23.234325] Chan 112 (frq 5560): not allowed!
[ 23.234327] Chan 116 (frq 5580): not allowed!
[ 23.234329] Chan 118 (frq 5590): not allowed!
[ 23.234331] Chan 120 (frq 5600): not allowed!
[ 23.234333] Chan 124 (frq 5620): not allowed!
[ 23.234333] Chan 124 (frq 5620): not allowed!
[ 23.234335] Chan 126 (frq 5630): not allowed!
[ 23.234337] Chan 128 (frq 5640): not allowed!
[ 23.234339] Chan 132 (frq 5660): not allowed!
[ 23.234341] Chan 134 (frq 5670): not allowed!
[ 23.234343] Chan 136 (frq 5680): not allowed!
[ 23.234345] Chan 140 (frq 5700): not allowed!
[ 23.234348] Chan 167 (frq 5835): not allowed!
[ 23.234350] Chan 169 (frq 5845): not allowed!
[ 23.234352] Chan 171 (frq 5855): not allowed!
[ 23.234354] Chan 173 (frq 5865): not allowed!
[ 23.234356] Chan 184 (frq 4920): not allowed!
[ 23.234358] Chan 188 (frq 4940): not allowed!
[ 23.234360] Chan 192 (frq 4960): not allowed!
[ 23.234362] Chan 196 (frq 4980): not allowed!
[ 23.234364] Chan 208 (frq 6040): not allowed!
[ 23.234369] Chan 212 (frq 6060): not allowed!
[ 23.234369] Chan 216 (frq 6080): not allowed!

Seems fishy, because my network is on channel 157. Why isn't it detecting these channels?

Kernel 4.4.38 kernel Oops

If i disable networkmanager. I can connect the AP manually use below command
wpa_supplicant -B -i wlan0 -c wpa_supplicant.conf -D nl80211
dhcpcd wlan0

But, if I plugin the dongle and restart networkmanager, kernel oops

It shows unable to handle kernel paging request at 000000000013a355 at CFG80211DRV_IoctlHandle+0x1505/0x1540 [mt7662u_sta]

check CFG80211DRV_IoctlHandle+0x1505/0x1540 at 7c5f5
DBGPRINT(RT_DEBUG_TRACE, ("WPA\n"));
7c5dd: e9 92 f0 ff ff jmpq 7b674 <CFG80211DRV_IoctlHandle+0x584>
7c5e2: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c5e9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
memcpy(KeyBuf, pConnInfo->pKey, pConnInfo->KeyLen);
7c5f0: e8 00 00 00 00 callq 7c5f5 <CFG80211DRV_IoctlHandle+0x1505>
7c5f5: 41 80 bc 24 51 a3 13 cmpb $0x1,0x13a351(%r12)
7c5fc: 00 01
DBGPRINT(RT_DEBUG_TRACE, (" %s\n", __FUNCTION__));

uname -a
Linux Arch-C6A8BC 4.4.38-1-lts #1 SMP Sat Dec 10 20:21:58 CET 2016 x86_64 GNU/Linux

[ 388.545428] 80211> CFG80211_OpsScan ==> wlan0(2)
[ 388.545459] CFG80211DRV_IoctlHandle: 504a ffff8802475d7918 0
[ 388.545468] CFG80211DRV_IoctlHandle: 504e (null) 2
[ 388.545475] 80211> ExtraIEs Null in ProbeRequest from upper layer...
[ 388.545480] 80211> Wildcard SSID In ProbeRequest.
[ 388.545492] CFG80211DRV_IoctlHandle: 5061 ffff88023223f400 2f
[ 388.545583] SCANNING, suspend MSDU transmission ...
[ 388.546269] bbp_set_bw(): Set PhyBW as 20MHz.l
[ 388.546282] SYNC - BBP R4 to 20MHz.l
[ 388.581330] wlp2s0: deauthenticating from 00:35:7a:00:00:c8 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 388.596848] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 388.596856] CFG80211NetdevNotifierEvent default: [4]
[ 388.600673] TX0 power compensation = 0x38
[ 388.600775] TX1 power compensation = 0x38
[ 388.601092] mt76x2_switch_channel(): Switch to Ch#1(2T2R), BBP_BW=0, bbp_ch_idx=0)
[ 388.674215] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 388.674218] CFG80211NetdevNotifierEvent default: [4]
[ 388.674385] CFG80211NetdevNotifierEvent ndev:ffff88009e099000 state:9
[ 388.674387] CFG80211NetdevNotifierEvent NETDEV_GOING_DOWN [9]
[ 388.674389] CFG80211DRV_IoctlHandle: 5078 ffff88009e099000 9
[ 388.674391] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT
[ 388.674392] CFG_SCAN: close the scan cmd in device close phase
[ 388.674393] 80211> cfg80211_scan_done
[ 388.674455] ===> rt28xx_close ffffc90001a01000
[ 388.674456] ==> MlmeHalt
[ 388.674462] <---MlmeThread
[ 388.674471] --->Disable TSF synchronization
[ 388.679784] <== MlmeHalt
[ 388.679788] MacTableReset
[ 388.679831] RT28xxUsbMlmeRadioOFF()
[ 388.689936] --> RT65xxUsbAsicRadioOff
[ 388.689938] ----> RT65xxDisableTxRx
[ 388.689939] RT65xxDisableTxRx Tx success = 0
[ 388.689940] RT65xxDisableTxRx Tx success = 9
[ 388.689941] ====> StopDmaTx
[ 388.691396] <==== StopDmaTx
[ 388.691759] ERROR mt766u_sta:MlmeEnqueueForRecv(): fRTMP_ADAPTER_HALT_IN_PROGRESS
[ 388.691796] ERROR mt766u_sta:MlmeEnqueueForRecv(): fRTMP_ADAPTER_HALT_IN_PROGRESS
[ 388.691841] ERROR mt766u_sta:MlmeEnqueueForRecv(): fRTMP_ADAPTER_HALT_IN_PROGRESS
[ 388.694458] ====> StopDmaRx
[ 388.694498] <==== StopDmaRx
[ 388.694499] andes_usb_erasefw
[ 388.694539] ==>rlt_wlan_chip_onoff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0x20b, Reg-WlanFunCtrl=0x20b
[ 388.694578] WlanFunCtrl= 0x208
[ 388.694675] <== rlt_wlan_chip_onoff():pAd->WlanFunCtrl.word = 0x208, Reg->WlanFunCtrl=0x208!
[ 388.694677] <---- RT65xxDisableTxRx
[ 388.694755] receive cmd msg fail(-2)
[ 388.694760] tx_kickout_fail_count = 0
[ 388.694760] tx_timeout_fail_count = 0
[ 388.694761] rx_receive_fail_count = 0
[ 388.694761] alloc_cmd_msg = 26
[ 388.694762] free_cmd_msg = 26
[ 388.694763] --->RTUSBCancelPendingBulkInIRP
[ 388.694800] <---RTUSBCancelPendingBulkInIRP
[ 388.694801] <== RT65xxUsbAsicRadioOff
[ 388.745163] --->RTUSBCancelPendingBulkInIRP
[ 388.745174] <---RTUSBCancelPendingBulkInIRP
[ 388.745190] <---RTUSBCmdThread
[ 388.745231] <---RtmpTimerQThread
[ 388.745264] CFG80211DRV_IoctlHandle: 5073 (null) 0
[ 388.745265] CFG80211_reSetToDefault
[ 388.747293] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a834b0!
[ 388.747294] RTMP_TimerListRelease: release timer obj ffffc90001a834b0!
[ 388.747295] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a83528!
[ 388.747296] RTMP_TimerListRelease: release timer obj ffffc90001a83528!
[ 388.747297] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a835a0!
[ 388.747297] RTMP_TimerListRelease: release timer obj ffffc90001a835a0!
[ 388.747298] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a83438!
[ 388.747299] RTMP_TimerListRelease: release timer obj ffffc90001a83438!
[ 388.747300] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a832d0!
[ 388.747300] RTMP_TimerListRelease: release timer obj ffffc90001a832d0!
[ 388.747301] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a83348!
[ 388.747302] RTMP_TimerListRelease: release timer obj ffffc90001a83348!
[ 388.747303] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a14fa0!
[ 388.747304] RTMP_TimerListRelease: release timer obj ffffc90001a14fa0!
[ 388.747305] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a03d78!
[ 388.747305] RTMP_TimerListRelease: release timer obj ffffc90001a03d78!
[ 388.747306] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a03df8!
[ 388.747307] RTMP_TimerListRelease: release timer obj ffffc90001a03df8!
[ 388.747308] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a15128!
[ 388.747308] RTMP_TimerListRelease: release timer obj ffffc90001a15128!
[ 388.747309] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a14eb0!
[ 388.747310] RTMP_TimerListRelease: release timer obj ffffc90001a14eb0!
[ 388.747310] RTMP_AllTimerListRelease: Cancel timer obj ffffc90001a150b0!
[ 388.747311] RTMP_TimerListRelease: release timer obj ffffc90001a150b0!
[ 388.747312] <=== rt28xx_close
[ 388.747397] CFG80211NetdevNotifierEvent ndev:ffff88009e099000 state:2
[ 388.747398] CFG80211NetdevNotifierEvent default: [2]
[ 388.933622] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 388.933626] CFG80211NetdevNotifierEvent default: [4]
[ 388.933645] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 388.933646] CFG80211NetdevNotifierEvent default: [4]
[ 388.997443] CFG80211NetdevNotifierEvent ndev:ffff88022ffd2000 state:16
[ 388.997551] CFG80211NetdevNotifierEvent ndev:ffff88022ffd2000 state:5
[ 388.997576] CFG80211NetdevNotifierEvent ndev:ffff88022ffd2000 state:13
[ 388.997610] CFG80211NetdevNotifierEvent ndev:ffff88022ffd2000 state:1
[ 389.064033] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064039] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064042] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064044] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064046] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064048] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064050] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064052] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064054] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064056] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064058] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064060] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064062] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064064] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064066] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064067] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064069] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.064071] CFG80211DRV_IoctlHandle: 5062 ffff88009e099000 0
[ 389.193745] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 389.193756] CFG80211NetdevNotifierEvent default: [4]
[ 389.359012] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:4
[ 389.359015] CFG80211NetdevNotifierEvent default: [4]
[ 389.359170] IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready
[ 389.359280] CFG80211NetdevNotifierEvent ndev:ffff88024863e000 state:9
[ 389.359281] CFG80211NetdevNotifierEvent NETDEV_GOING_DOWN [9]
[ 389.359283] CFG80211DRV_IoctlHandle: 5078 ffff88024863e000 9
[ 389.359284] CFG80211DRV_IoctlHandle: CMD_RTPRIV_IOCTL_80211_NETDEV_EVENT
[ 389.359305] BUG: unable to handle kernel paging request at 000000000013a355
[ 389.360244] IP: [] CFG80211DRV_IoctlHandle+0x1505/0x1540 [mt7662u_sta]
[ 389.360750] PGD 2474dc067 PUD 247620067 PMD 0
[ 389.361221] Oops: 0000 [#1] SMP
[ 389.361723] Modules linked in: mt7662u_sta(O) sha256_ssse3 sha256_generic hmac drbg ansi_cprng ctr ccm nls_iso8859_1 nls_cp437 vfat fat btusb btrtl uvcvideo btbcm btintel videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core bluetooth v4l2_common videodev cp210x media usbserial joydev arc4 mousedev iwlmvm snd_hda_codec_hdmi intel_rapl iosf_mbi snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp coretemp mac80211 snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core kvm_intel snd_soc_sst_ipc kvm snd_soc_sst_dsp irqbypass snd_soc_core crct10dif_pclmul crc32_pclmul crc32c_intel snd_compress aesni_intel aes_x86_64 iTCO_wdt lrw snd_pcm_dmaengine iTCO_vendor_support gf128mul glue_helper ac97_bus dw_dmac_core rtsx_pci_ms r8169 memstick ablk_helper cryptd snd_hda_intel snd_hda_codec iwlwifi pcspkr
[ 389.365438] evdev input_leds snd_hda_core psmouse snd_hwdep cfg80211 snd_pcm snd_timer mii led_class mac_hid snd ideapad_laptop tpm_crb sparse_keymap tpm_tis tpm rfkill soundcore thermal wmi i915 mei_me battery ac fjes mei intel_gtt video i2c_algo_bit shpchp i2c_i801 button processor acpi_pad sch_fq_codel vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) ttm drm_kms_helper drm syscopyarea sysfillrect sysimgblt fb_sys_fops ip_tables x_tables ext4 crc16 mbcache jbd2 sd_mod hid_generic usbhid hid rtsx_pci_sdmmc mmc_core serio_raw atkbd libps2 ahci libahci xhci_pci xhci_hcd libata rtsx_pci scsi_mod usbcore usb_common i8042 serio
[ 389.369335] CPU: 1 PID: 1779 Comm: NetworkManager Tainted: G W O 4.4.38-1-lts #1
[ 389.370089] Hardware name: LENOVO 80Q9/ZHAOYANG E41-80, BIOS D7CN30WW(V3.03) 04/18/2016
[ 389.370836] task: ffff88009b2ae740 ti: ffff88021cef8000 task.ti: ffff88021cef8000
[ 389.371736] RIP: 0010:[] [] CFG80211DRV_IoctlHandle+0x1505/0x1540 [mt7662u_sta]
[ 389.372554] RSP: 0018:ffff88021cefb5d0 EFLAGS: 00010286
[ 389.373333] RAX: 000000000000003c RBX: 0000000000005078 RCX: 0000000000000006
[ 389.374127] RDX: 0000000000000000 RSI: 0000000000000246 RDI: ffff88025244db70
[ 389.374913] RBP: ffff88021cefb680 R08: 000000000000000a R09: 000000000000295d
[ 389.375711] R10: 0000000000000000 R11: ffffffffffffffff R12: 0000000000000004
[ 389.376522] R13: ffff88024863e000 R14: 0000000000000009 R15: 0000000000000004
[ 389.377328] FS: 00007effd56d6580(0000) GS:ffff880252440000(0000) knlGS:0000000000000000
[ 389.378142] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 389.378966] CR2: 000000000013a355 CR3: 00000002474b1000 CR4: 00000000003406e0
[ 389.379838] Stack:
[ 389.380663] 0000000000000000 0000000000000031 0000000000000002 ffff88021cefb658
[ 389.381507] ffffffff810cc22b ffffffff81a6aec0 ffff880200000031 0000000000000000
[ 389.382366] ffffffffa0b2007f 0000000000000246 00ff88021cefb648 0000000000000000
[ 389.383231] Call Trace:
[ 389.384081] [] ? vprintk_emit+0x27b/0x490
[ 389.384957] [] RTMP_COM_IoctlHandle+0x6b5/0x780 [mt7662u_sta]
[ 389.385841] [] ? inetdev_event+0x3d/0x500
[ 389.386719] [] CFG80211NetdevNotifierEvent+0x106/0x190 [mt7662u_sta]
[ 389.387629] [] notifier_call_chain+0x4a/0x70
[ 389.388509] [] raw_notifier_call_chain+0x16/0x20
[ 389.389388] [] call_netdevice_notifiers_info+0x35/0x60
[ 389.390252] [] __dev_close_many+0x55/0x100
[ 389.391134] [] __dev_close+0x45/0x70
[ 389.392029] [] __dev_change_flags+0x9d/0x160
[ 389.392910] [] dev_change_flags+0x29/0x60
[ 389.393789] [] do_setlink+0x32b/0xb70
[ 389.394669] [] ? __nla_put+0x20/0x30
[ 389.395619] [] ? _raw_read_unlock_bh+0x20/0x30
[ 389.396481] [] ? inet6_fill_ifla6_attrs+0x42d/0x450
[ 389.397336] [] ? inet6_fill_link_af+0x1a/0x30
[ 389.398171] [] ? rtnl_fill_ifinfo+0xc36/0xf90
[ 389.398976] [] ? nla_parse+0x31/0x120
[ 389.399764] [] rtnl_newlink+0x5cd/0x870
[ 389.400542] [] ? __kmalloc_node_track_caller+0x35/0x2d0
[ 389.401292] [] ? security_capset+0x80/0x80
[ 389.402053] [] ? ns_capable_common+0x68/0x80
[ 389.402791] [] ? ns_capable+0x13/0x20
[ 389.403638] [] rtnetlink_rcv_msg+0xe6/0x230
[ 389.404329] [] ? __kmalloc_node_track_caller+0x35/0x2d0
[ 389.404995] [] ? __alloc_skb+0x87/0x1f0
[ 389.405628] [] ? rtnetlink_rcv+0x30/0x30
[ 389.406240] [] netlink_rcv_skb+0xa4/0xc0
[ 389.406804] [] rtnetlink_rcv+0x28/0x30
[ 389.407367] [] netlink_unicast+0x13a/0x1c0
[ 389.407911] [] netlink_sendmsg+0x4ed/0x600
[ 389.408427] [] sock_sendmsg+0x17/0x30
[ 389.408964] [] ___sys_sendmsg+0x292/0x2a0
[ 389.409460] [] ? memzero_explicit+0x12/0x20
[ 389.409954] [] ? extract_entropy_user+0x11c/0x1c0
[ 389.410450] [] ? urandom_read+0x47/0x110
[ 389.410945] [] ? dput+0xb9/0x210
[ 389.411536] [] ? mntput+0x24/0x40
[ 389.412007] [] ? __fget_light+0x25/0x60
[ 389.412504] [] __sys_sendmsg+0x51/0x90
[ 389.412985] [] SyS_sendmsg+0x12/0x20
[ 389.413437] [] entry_SYSCALL_64_fastpath+0x12/0x6d
[ 389.413935] Code: 48 c7 c6 00 9e b1 a0 48 c7 c7 eb 07 b2 a0 e8 fa b6 66 e0 e9 92 f0 ff ff 48 c7 c6 80 9e b1 a0 48 c7 c7 f8 41 b3 a0 e8 e2 b6 66 e0 <41> 80 bc 24 51 a3 13 00 01 0f 85 99 ec ff ff 83 3d 55 6d 06 00
[ 389.414959] RIP [] CFG80211DRV_IoctlHandle+0x1505/0x1540 [mt7662u_sta]
[ 389.415500] RSP
[ 389.415991] CR2: 000000000013a355
[ 389.420016] ---[ end trace 5177e42af38ee8d7 ]---

000000000007b0f0 <CFG80211DRV_IoctlHandle>:
7b0f0: e8 00 00 00 00 callq 7b0f5 <CFG80211DRV_IoctlHandle+0x5>
7b0f5: 55 push %rbp
7b0f6: 48 89 e5 mov %rsp,%rbp
7b0f9: 41 56 push %r14
7b0fb: 41 55 push %r13
CFG80211DBG(RT_DEBUG_TRACE, ("crda> CFG80211_RegRuleApply ==>\n"));
7b0fd: 41 54 push %r12
7b0ff: 53 push %rbx
7b100: 49 89 fc mov %rdi,%r12
7b103: 89 f3 mov %esi,%ebx
7b105: 49 89 d5 mov %rdx,%r13
7b108: 49 89 ce mov %rcx,%r14
7b10b: 48 81 ec 90 00 00 00 sub $0x90,%rsp
} /* End of CFG80211_RegRuleApply /
7b112: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
7b119: 00 00
7b11b: 48 89 45 d8 mov %rax,-0x28(%rbp)
7b11f: 31 c0 xor %eax,%eax
{
7b121: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b128 <CFG80211DRV_IoctlHandle+0x38>
7b128: 76 0e jbe 7b138 <CFG80211DRV_IoctlHandle+0x48>
7b12a: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b132 <CFG80211DRV_IoctlHandle+0x42>
7b131: 00
7b132: 0f 84 ce 0b 00 00 je 7bd06 <CFG80211DRV_IoctlHandle+0xc16>
7b138: 8d b3 b7 af ff ff lea -0x5049(%rbx),%esi
7b13e: 83 fe 30 cmp $0x30,%esi
7b141: 0f 87 b5 0b 00 00 ja 7bcfc <CFG80211DRV_IoctlHandle+0xc0c>
7b147: ff 24 f5 00 00 00 00 jmpq 0x0(,%rsi,8)
7b14e: 41 c6 84 24 9e 2f 00 movb $0x1,0x2f9e(%r12)
7b155: 00 01
DBGPRINT(RT_DEBUG_TRACE,
7b157: 41 0f b6 45 00 movzbl 0x0(%r13),%eax
7b15c: 3c 02 cmp $0x2,%al
7b15e: 0f 84 e7 0e 00 00 je 7c04b <CFG80211DRV_IoctlHandle+0xf5b>
7b164: 3c 01 cmp $0x1,%al
7b166: 0f 84 45 10 00 00 je 7c1b1 <CFG80211DRV_IoctlHandle+0x10c1>
switch (cmd) {
7b16c: 41 0f b6 45 02 movzbl 0x2(%r13),%eax
7b171: 3c 02 cmp $0x2,%al
7b173: 0f 84 2e 11 00 00 je 7c2a7 <CFG80211DRV_IoctlHandle+0x11b7>
7b179: 3c 01 cmp $0x1,%al
7b17b: 0f 84 b7 10 00 00 je 7c238 <CFG80211DRV_IoctlHandle+0x1148>
pAd->StaCfg.wpa_supplicant_info.WpaSupplicantUP = WPA_SUPPLICANT_ENABLE; /
Set_Wpa_Support(pAd, "1")
/
7b181: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
if (pConnInfo->WpaVer == 2) {
7b188: 4c 89 e7 mov %r12,%rdi
7b18b: e8 00 00 00 00 callq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7b190: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 7b196 <CFG80211DRV_IoctlHandle+0xa6>
} else if (pConnInfo->WpaVer == 1) {
7b196: 83 f8 02 cmp $0x2,%eax
7b199: 0f 86 9f 0d 00 00 jbe 7bf3e <CFG80211DRV_IoctlHandle+0xe4e>
} else if (pConnInfo->AuthType == Ndis802_11AuthModeAutoSwitch) {
7b19f: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b1a7 <CFG80211DRV_IoctlHandle+0xb7>
7b1a6: 00
7b1a7: 0f 84 6a 0f 00 00 je 7c117 <CFG80211DRV_IoctlHandle+0x1027>
} else if (pConnInfo->AuthType == Ndis802_11AuthModeShared) {
7b1ad: 41 0f b6 55 03 movzbl 0x3(%r13),%edx
Set_AuthMode_Proc(pAd, "OPEN");
7b1b2: f6 c2 08 test $0x8,%dl
7b1b5: 0f 85 6f 0d 00 00 jne 7bf2a <CFG80211DRV_IoctlHandle+0xe3a>
7b1bb: f6 c2 04 test $0x4,%dl
7b1be: 0f 85 88 10 00 00 jne 7c24c <CFG80211DRV_IoctlHandle+0x115c>
CFG80211DBG(RT_DEBUG_TRACE,
7b1c4: 83 e2 02 and $0x2,%edx
7b1c7: 0f 84 ee 10 00 00 je 7c2bb <CFG80211DRV_IoctlHandle+0x11cb>
7b1cd: 83 f8 02 cmp $0x2,%eax
7b1d0: 76 0e jbe 7b1e0 <CFG80211DRV_IoctlHandle+0xf0>
7b1d2: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b1da <CFG80211DRV_IoctlHandle+0xea>
7b1d9: 00
7b1da: 0f 84 da 12 00 00 je 7c4ba <CFG80211DRV_IoctlHandle+0x13ca>
if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_CCMP) {
7b1e0: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7b1e7: 4c 89 e7 mov %r12,%rdi
7b1ea: e8 00 00 00 00 callq 7b1ef <CFG80211DRV_IoctlHandle+0xff>
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_TKIP) {
7b1ef: 41 0f b6 45 04 movzbl 0x4(%r13),%eax
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_WEP) {
7b1f4: c7 85 58 ff ff ff 30 movl $0x30,-0xa8(%rbp)
7b1fb: 00 00 00
DBGPRINT(RT_DEBUG_TRACE, ("WEP\n"));
7b1fe: a8 08 test $0x8,%al
7b200: 0f 84 71 0d 00 00 je 7bf77 <CFG80211DRV_IoctlHandle+0xe87>
7b206: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b20d <CFG80211DRV_IoctlHandle+0x11d>
7b20d: 76 0e jbe 7b21d <CFG80211DRV_IoctlHandle+0x12d>
7b20f: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b217 <CFG80211DRV_IoctlHandle+0x127>
7b216: 00
Set_EncrypType_Proc(pAd, "WEP");
7b217: 0f 84 64 13 00 00 je 7c581 <CFG80211DRV_IoctlHandle+0x1491>
7b21d: 48 8d b5 58 ff ff ff lea -0xa8(%rbp),%rsi
IoctlWpa.flags = RT_CMD_STA_IOCTL_WPA_GROUP;
7b224: 31 d2 xor %edx,%edx
7b226: 4c 89 e7 mov %r12,%rdi
7b229: c7 85 5c ff ff ff 35 movl $0x35,-0xa4(%rbp)
7b230: 00 00 00
if (pConnInfo->GroupwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_CCMP) {
7b233: e8 00 00 00 00 callq 7b238 <CFG80211DRV_IoctlHandle+0x148>
DBGPRINT(RT_DEBUG_TRACE, ("GTK AES\n"));
7b238: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b23f <CFG80211DRV_IoctlHandle+0x14f>
7b23f: 76 0e jbe 7b24f <CFG80211DRV_IoctlHandle+0x15f>
7b241: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b249 <CFG80211DRV_IoctlHandle+0x159>
7b248: 00
7b249: 0f 84 6c 11 00 00 je 7c3bb <CFG80211DRV_IoctlHandle+0x12cb>
RtmpIoctl_rt_ioctl_siwauth(pAd, &IoctlWpa, 0);
7b24f: 49 83 7d 08 00 cmpq $0x0,0x8(%r13)
7b254: 74 11 je 7b267 <CFG80211DRV_IoctlHandle+0x177>
7b256: 41 0f b6 45 04 movzbl 0x4(%r13),%eax
IoctlWpa.value = RT_CMD_STA_IOCTL_WPA_GROUP_CCMP;
7b25b: 41 0a 45 03 or 0x3(%r13),%al
7b25f: a8 02 test $0x2,%al
7b261: 0f 85 1a 0e 00 00 jne 7c081 <CFG80211DRV_IoctlHandle+0xf91>
RtmpIoctl_rt_ioctl_siwauth(pAd, &IoctlWpa, 0);
7b267: 41 c6 84 24 52 a3 13 movb $0x1,0x13a352(%r12)
7b26e: 00 01
CFG80211DBG(RT_DEBUG_TRACE, ("80211> EncrypType = %d\n", pAd->StaCfg.wdev.WepStatus));
7b270: 48 89 de mov %rbx,%rsi
7b273: 4c 89 e7 mov %r12,%rdi
7b276: e8 00 00 00 00 callq 7b27b <CFG80211DRV_IoctlHandle+0x18b>
7b27b: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b282 <CFG80211DRV_IoctlHandle+0x192>
if (pConnInfo->pKey &&
7b282: 76 19 jbe 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b284: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b28c <CFG80211DRV_IoctlHandle+0x19c>
7b28b: 00
((pConnInfo->GroupwiseEncrypType | pConnInfo->PairwiseEncrypType) &
7b28c: 75 0f jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b28e: 48 89 de mov %rbx,%rsi
if (pConnInfo->pKey &&
7b291: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
pAd->cfg80211_ctrl.FlgCfg80211Connecting = TRUE;
7b298: e8 00 00 00 00 callq 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b29d: 31 c0 xor %eax,%eax
7b29f: 48 8b 4d d8 mov -0x28(%rbp),%rcx
Set_SSID_Proc(pAd, (PSTRING)SSID);
7b2a3: 65 48 33 0c 25 28 00 xor %gs:0x28,%rcx
7b2aa: 00 00
CFG80211DBG(RT_DEBUG_TRACE, ("80211> Connecting SSID = %s\n", SSID));
7b2ac: 0f 85 b3 10 00 00 jne 7c365 <CFG80211DRV_IoctlHandle+0x1275>
7b2b2: 48 81 c4 90 00 00 00 add $0x90,%rsp
7b2b9: 5b pop %rbx
7b2ba: 41 5c pop %r12
7b2bc: 41 5d pop %r13
7b2be: 41 5e pop %r14
7b2c0: 5d pop %rbp
7b2c1: c3 retq
7b2c2: 49 8b 84 24 e0 a4 13 mov 0x13a4e0(%r12),%rax
7b2c9: 00
7b2ca: 49 89 45 00 mov %rax,0x0(%r13)
return NDIS_STATUS_SUCCESS;
7b2ce: 31 c0 xor %eax,%eax
}
7b2d0: eb cd jmp 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b2d2: 4c 89 e7 mov %r12,%rdi
7b2d5: e8 00 00 00 00 callq 7b2da <CFG80211DRV_IoctlHandle+0x1ea>
7b2da: 31 c0 xor %eax,%eax
7b2dc: eb c1 jmp 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b2de: 49 8b bc 24 e0 a4 13 mov 0x13a4e0(%r12),%rdi
7b2e5: 00
7b2e6: 48 85 ff test %rdi,%rdi
7b2e9: 74 b2 je 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b2eb: 4c 89 ee mov %r13,%rsi
7b2ee: e8 00 00 00 00 callq 7b2f3 <CFG80211DRV_IoctlHandle+0x203>
pSurveyInfo->pCfg80211 = pAd->pCfg80211_CB;
7b2f3: 31 c9 xor %ecx,%ecx
7b2f5: 31 d2 xor %edx,%edx
7b2f7: be 77 50 00 00 mov $0x5077,%esi
7b2fc: 4c 89 e7 mov %r12,%rdi
return NDIS_STATUS_SUCCESS;
7b2ff: e8 00 00 00 00 callq 7b304 <CFG80211DRV_IoctlHandle+0x214>
CFG80211DRV_OpsScanExtraIesSet(pAd);
7b304: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
return NDIS_STATUS_SUCCESS;
7b30b: e8 00 00 00 00 callq 7b310 <CFG80211DRV_IoctlHandle+0x220>
if (pAd->pCfg80211_CB == NULL)
7b310: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b317 <CFG80211DRV_IoctlHandle+0x227>
7b317: 76 0e jbe 7b327 <CFG80211DRV_IoctlHandle+0x237>
7b319: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b321 <CFG80211DRV_IoctlHandle+0x231>
7b320: 00
CFG80211OS_UnRegister(pAd->pCfg80211_CB, pNetDev);
7b321: 0f 84 49 11 00 00 je 7c470 <CFG80211DRV_IoctlHandle+0x1380>
RTMP_DRIVER_80211_SCAN_STATUS_LOCK_INIT(pAd, FALSE);
7b327: 49 8b bc 24 58 a3 13 mov 0x13a358(%r12),%rdi
7b32e: 00
7b32f: 41 c6 84 24 88 a4 13 movb $0x0,0x13a488(%r12)
7b336: 00 00
unregister_netdevice_notifier(&cfg80211_netdev_notifier);
7b338: 41 c6 84 24 89 a4 13 movb $0x0,0x13a489(%r12)
7b33f: 00 00
DBGPRINT(RT_DEBUG_TRACE,
7b341: 41 c6 84 24 86 a4 13 movb $0x0,0x13a486(%r12)
7b348: 00 00
7b34a: 41 c6 84 24 87 a4 13 movb $0x0,0x13a487(%r12)
7b351: 00 00
7b353: 49 c7 84 24 e0 a4 13 movq $0x0,0x13a4e0(%r12)
7b35a: 00 00 00 00 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterActionFrame = FALSE,
7b35f: 48 85 ff test %rdi,%rdi
7b362: 41 c6 84 24 d9 36 00 movb $0x0,0x36d9(%r12)
7b369: 00 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount = 0;
7b36b: 74 11 je 7b37e <CFG80211DRV_IoctlHandle+0x28e>
7b36d: e8 00 00 00 00 callq 7b372 <CFG80211DRV_IoctlHandle+0x282>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterProbeReqFrame = FALSE;
7b372: 49 c7 84 24 58 a3 13 movq $0x0,0x13a358(%r12)
7b379: 00 00 00 00 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount = 0;
7b37e: 49 8b bc 24 68 a3 13 mov 0x13a368(%r12),%rdi
7b385: 00
pAd->pCfg80211_CB = NULL;
7b386: 41 c6 84 24 60 a3 13 movb $0x0,0x13a360(%r12)
7b38d: 00 00
if (pCfg80211_ctrl->pCfg80211ChanList != NULL) {
7b38f: 41 c6 84 24 61 a3 13 movb $0x0,0x13a361(%r12)
7b396: 00 00
pAd->CommonCfg.HT_Disable = 0;
7b398: 48 85 ff test %rdi,%rdi
if (pCfg80211_ctrl->pCfg80211ChanList != NULL) {
7b39b: 74 11 je 7b3ae <CFG80211DRV_IoctlHandle+0x2be>
os_free_mem(pCfg80211_ctrl->pCfg80211ChanList);
7b39d: e8 00 00 00 00 callq 7b3a2 <CFG80211DRV_IoctlHandle+0x2b2>
pCfg80211_ctrl->pCfg80211ChanList = NULL;
7b3a2: 49 c7 84 24 68 a3 13 movq $0x0,0x13a368(%r12)
7b3a9: 00 00 00 00 00
if (pCfg80211_ctrl->pExtraIe) {
7b3ae: 41 c7 84 24 70 a3 13 movl $0x0,0x13a370(%r12)
7b3b5: 00 00 00 00 00
pCfg80211_ctrl->Cfg80211ChanListLen = 0;
7b3ba: 31 c0 xor %eax,%eax
7b3bc: e9 de fe ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pCfg80211_ctrl->Cfg80211CurChanIndex = 0;
7b3c1: 41 0f b6 45 00 movzbl 0x0(%r13),%eax
7b3c6: 41 f6 84 24 03 98 13 testb $0x10,0x139803(%r12)
7b3cd: 00 10
os_free_mem(pCfg80211_ctrl->pExtraIe);
7b3cf: 41 88 84 24 dc a4 13 mov %al,0x13a4dc(%r12)
7b3d6: 00
pCfg80211_ctrl->pExtraIe = NULL;
7b3d7: 41 0f b6 45 01 movzbl 0x1(%r13),%eax
7b3dc: 41 88 84 24 dd a4 13 mov %al,0x13a4dd(%r12)
7b3e3: 00
pCfg80211_ctrl->ExtraIeLen = 0;
7b3e4: 0f 85 cc 0b 00 00 jne 7bfb6 <CFG80211DRV_IoctlHandle+0xec6>
return NDIS_STATUS_SUCCESS;
7b3ea: 8b 15 00 00 00 00 mov 0x0(%rip),%edx # 7b3f0 <CFG80211DRV_IoctlHandle+0x300>
7b3f0: 85 d2 test %edx,%edx
pAd->cfg80211_ctrl.Cfg80211_Alpha2[0] = pRegInfo->Alpha2[0];
7b3f2: 0f 84 a5 fe ff ff je 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_START_UP)) {
7b3f8: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
pAd->cfg80211_ctrl.Cfg80211_Alpha2[0] = pRegInfo->Alpha2[0];
7b3ff: e8 00 00 00 00 callq 7b404 <CFG80211DRV_IoctlHandle+0x314>
7b404: 31 c0 xor %eax,%eax
7b406: e9 94 fe ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pAd->cfg80211_ctrl.Cfg80211_Alpha2[1] = pRegInfo->Alpha2[1];
7b40b: 49 8b 84 24 50 32 00 mov 0x3250(%r12),%rax
7b412: 00
7b413: 25 81 00 00 00 and $0x81,%eax
if (RTMP_TEST_FLAG(pAd, fRTMP_ADAPTER_START_UP)) {
7b418: 48 3d 81 00 00 00 cmp $0x81,%rax
CFG80211DBG(RT_DEBUG_ERROR, ("crda> interface is down!\n"));
7b41e: 0f 84 06 0a 00 00 je 7be2a <CFG80211DRV_IoctlHandle+0xd3a>
7b424: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b42b <CFG80211DRV_IoctlHandle+0x33b>
7b42b: 76 0e jbe 7b43b <CFG80211DRV_IoctlHandle+0x34b>
7b42d: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b435 <CFG80211DRV_IoctlHandle+0x345>
7b434: 00
return NDIS_STATUS_SUCCESS;
7b435: 0f 84 46 10 00 00 je 7c481 <CFG80211DRV_IoctlHandle+0x1391>
if (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_INFRA_ON) &&
7b43b: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7b442: 4c 89 e7 mov %r12,%rdi
7b445: 48 8d 5d 85 lea -0x7b(%rbp),%rbx
7b449: e8 00 00 00 00 callq 7b44e <CFG80211DRV_IoctlHandle+0x35e>
7b44e: 41 8b 45 20 mov 0x20(%r13),%eax
7b452: ba 20 00 00 00 mov $0x20,%edx
DBGPRINT(RT_DEBUG_TRACE, ("CFG80211: No Connection\n"));
7b457: 48 c7 45 85 00 00 00 movq $0x0,-0x7b(%rbp)
7b45e: 00
7b45f: 48 c7 45 8d 00 00 00 movq $0x0,-0x73(%rbp)
7b466: 00
7b467: 48 c7 45 95 00 00 00 movq $0x0,-0x6b(%rbp)
7b46e: 00
Set_NetworkType_Proc(pAd, "Infra");
7b46f: 48 c7 45 9d 00 00 00 movq $0x0,-0x63(%rbp)
7b476: 00
memset(&SSID, 0, sizeof(SSID));
7b477: c6 45 a5 00 movb $0x0,-0x5b(%rbp)
Set_NetworkType_Proc(pAd, "Infra");
7b47b: 83 f8 20 cmp $0x20,%eax
SSIDLen = pConnInfo->SsidLen;
7b47e: 48 0f 47 c2 cmova %rdx,%rax
memcpy(SSID, pConnInfo->pSsid, SSIDLen);
7b482: 49 8b 55 18 mov 0x18(%r13),%rdx
7b486: 83 f8 08 cmp $0x8,%eax
memset(&SSID, 0, sizeof(SSID));
7b489: 0f 83 b7 08 00 00 jae 7bd46 <CFG80211DRV_IoctlHandle+0xc56>
7b48f: a8 04 test $0x4,%al
7b491: 0f 85 d4 0d 00 00 jne 7c26b <CFG80211DRV_IoctlHandle+0x117b>
7b497: 85 c0 test %eax,%eax
7b499: 74 0d je 7b4a8 <CFG80211DRV_IoctlHandle+0x3b8>
7b49b: 0f b6 0a movzbl (%rdx),%ecx
7b49e: a8 02 test $0x2,%al
7b4a0: 88 0b mov %cl,(%rbx)
7b4a2: 0f 85 ae 0e 00 00 jne 7c356 <CFG80211DRV_IoctlHandle+0x1266>
7b4a8: 41 80 7d 30 00 cmpb $0x0,0x30(%r13)
memcpy(SSID, pConnInfo->pSsid, SSIDLen);
7b4ad: 0f 84 9b fc ff ff je 7b14e <CFG80211DRV_IoctlHandle+0x5e>
7b4b3: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b4ba <CFG80211DRV_IoctlHandle+0x3ca>
7b4ba: 76 0e jbe 7b4ca <CFG80211DRV_IoctlHandle+0x3da>
7b4bc: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b4c4 <CFG80211DRV_IoctlHandle+0x3d4>
7b4c3: 00
7b4c4: 0f 84 df 0f 00 00 je 7c4a9 <CFG80211DRV_IoctlHandle+0x13b9>
7b4ca: 41 80 8c 24 9e 2f 00 orb $0x80,0x2f9e(%r12)
7b4d1: 00 80
7b4d3: 4c 89 e7 mov %r12,%rdi
7b4d6: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
if (pConnInfo->bWpsConnection) {
7b4dd: e8 00 00 00 00 callq 7b4e2 <CFG80211DRV_IoctlHandle+0x3f2>
7b4e2: 4c 89 e7 mov %r12,%rdi
DBGPRINT(RT_DEBUG_TRACE, ("WPS Connection onGoing.....\n"));
7b4e5: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7b4ec: e8 00 00 00 00 callq 7b4f1 <CFG80211DRV_IoctlHandle+0x401>
7b4f1: 48 89 de mov %rbx,%rsi
7b4f4: 4c 89 e7 mov %r12,%rdi
7b4f7: e8 00 00 00 00 callq 7b4fc <CFG80211DRV_IoctlHandle+0x40c>
pAd->StaCfg.wpa_supplicant_info.WpaSupplicantUP |= WPA_SUPPLICANT_ENABLE_WPS; /* Set_Wpa_Support(pAd, "3") /
7b4fc: e9 9c fd ff ff jmpq 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b501: 41 0f b6 5d 01 movzbl 0x1(%r13),%ebx
Set_AuthMode_Proc(pAd, "OPEN");
7b506: 45 0f b6 75 00 movzbl 0x0(%r13),%r14d
7b50b: 80 fb 06 cmp $0x6,%bl
7b50e: 0f 84 84 09 00 00 je 7be98 <CFG80211DRV_IoctlHandle+0xda8>
Set_EncrypType_Proc(pAd, "NONE");
7b514: 41 0f b6 45 02 movzbl 0x2(%r13),%eax
7b519: 3c 01 cmp $0x1,%al
7b51b: 0f 84 ba 0a 00 00 je 7bfdb <CFG80211DRV_IoctlHandle+0xeeb>
Set_SSID_Proc(pAd, (PSTRING)SSID);
7b521: 3c 02 cmp $0x2,%al
7b523: 0f 84 e1 0a 00 00 je 7c00a <CFG80211DRV_IoctlHandle+0xf1a>
7b529: 3c 03 cmp $0x3,%al
7b52b: 0f 84 34 0c 00 00 je 7c165 <CFG80211DRV_IoctlHandle+0x1075>
IfType = pChan->IfType;
7b531: 84 c0 test %al,%al
7b533: 75 1b jne 7b550 <CFG80211DRV_IoctlHandle+0x460>
7b535: 41 80 a4 24 ad 31 00 andb $0xf7,0x31ad(%r12)
7b53c: 00 f7
if (IfType != RT_CMD_80211_IFTYPE_MONITOR) {
7b53e: 41 80 a4 24 ae 31 00 andb $0xf9,0x31ae(%r12)
7b545: 00 f9
ChannelType = pChan->ChanType;
7b547: 41 c6 84 24 d9 36 00 movb $0x1,0x36d9(%r12)
7b54e: 00 01
if (ChannelType == RT_CMD_80211_CHANTYPE_HT20) {
7b550: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b557 <CFG80211DRV_IoctlHandle+0x467>
} else if (ChannelType == RT_CMD_80211_CHANTYPE_HT40MINUS) {
7b557: 76 0e jbe 7b567 <CFG80211DRV_IoctlHandle+0x477>
} else if (ChannelType == RT_CMD_80211_CHANTYPE_HT40PLUS) {
7b559: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b561 <CFG80211DRV_IoctlHandle+0x471>
7b560: 00
} else if (ChannelType == RT_CMD_80211_CHANTYPE_NOHT) {
7b561: 0f 84 18 0e 00 00 je 7c37f <CFG80211DRV_IoctlHandle+0x128f>
pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20;
7b567: 4c 89 e7 mov %r12,%rdi
7b56a: e8 00 00 00 00 callq 7b56f <CFG80211DRV_IoctlHandle+0x47f>
pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_NONE;
7b56f: 41 0f b6 84 24 ae 31 movzbl 0x31ae(%r12),%eax
7b576: 00 00
pAd->CommonCfg.HT_Disable = 1;
7b578: 45 88 b4 24 48 31 00 mov %r14b,0x3148(%r12)
7b57f: 00
CFG80211DBG(RT_DEBUG_TRACE, ("80211> HT Disable = %d\n",
7b580: 45 88 b4 24 f5 41 01 mov %r14b,0x141f5(%r12)
7b587: 00
7b588: 83 e0 06 and $0x6,%eax
7b58b: 3c 06 cmp $0x6,%al
7b58d: 0f 84 f4 08 00 00 je 7be87 <CFG80211DRV_IoctlHandle+0xd97>
7b593: 41 8d 56 02 lea 0x2(%r14),%edx
SetCommonHT(pAd);
7b597: 3c 02 cmp $0x2,%al
7b599: 44 0f 44 f2 cmove %edx,%r14d
7b59d: 45 88 b4 24 49 31 00 mov %r14b,0x3149(%r12)
7b5a4: 00
if(pAd->CommonCfg.RegTransmitSetting.field.EXTCHA == EXTCHA_BELOW)
7b5a5: 41 0f b6 b4 24 ad 31 movzbl 0x31ad(%r12),%esi
7b5ac: 00 00
pAd->CommonCfg.Channel = ChanId;
7b5ae: 4c 89 e7 mov %r12,%rdi
pAd->MlmeAux.Channel = ChanId;
7b5b1: 40 c0 ee 03 shr $0x3,%sil
7b5b5: 83 e6 01 and $0x1,%esi
if(pAd->CommonCfg.RegTransmitSetting.field.EXTCHA == EXTCHA_BELOW)
7b5b8: e8 00 00 00 00 callq 7b5bd <CFG80211DRV_IoctlHandle+0x4cd>
7b5bd: 41 0f b6 b4 24 49 31 movzbl 0x3149(%r12),%esi
7b5c4: 00 00
pAd->CommonCfg.CentralChannel = pAd->CommonCfg.Channel + 2;
7b5c6: 31 d2 xor %edx,%edx
7b5c8: 4c 89 e7 mov %r12,%rdi
7b5cb: e8 00 00 00 00 callq 7b5d0 <CFG80211DRV_IoctlHandle+0x4e0>
7b5d0: 41 0f b6 b4 24 49 31 movzbl 0x3149(%r12),%esi
7b5d7: 00 00
bbp_set_bw(pAd, pAd->CommonCfg.RegTransmitSetting.field.BW);
7b5d9: 4c 89 e7 mov %r12,%rdi
7b5dc: e8 00 00 00 00 callq 7b5e1 <CFG80211DRV_IoctlHandle+0x4f1>
7b5e1: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b5e8 <CFG80211DRV_IoctlHandle+0x4f8>
7b5e8: 76 0e jbe 7b5f8 <CFG80211DRV_IoctlHandle+0x508>
7b5ea: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b5f2 <CFG80211DRV_IoctlHandle+0x502>
7b5f1: 00
AsicSwitchChannel(pAd, pAd->CommonCfg.CentralChannel,FALSE);
7b5f2: 0f 84 3e 0f 00 00 je 7c536 <CFG80211DRV_IoctlHandle+0x1446>
7b5f8: 80 fb 03 cmp $0x3,%bl
7b5fb: 0f 84 c8 07 00 00 je 7bdc9 <CFG80211DRV_IoctlHandle+0xcd9>
AsicLockChannel(pAd, pAd->CommonCfg.CentralChannel);
7b601: 80 fb 09 cmp $0x9,%bl
7b604: 0f 84 bf 07 00 00 je 7bdc9 <CFG80211DRV_IoctlHandle+0xcd9>
7b60a: 80 fb 02 cmp $0x2,%bl
7b60d: 0f 84 17 0a 00 00 je 7c02a <CFG80211DRV_IoctlHandle+0xf3a>
CFG80211DBG(RT_DEBUG_TRACE, ("80211> New CH = %d, New BW = %d with Ext[%d]\n",
7b613: 80 fb 01 cmp $0x1,%bl
7b616: 0f 84 e9 0b 00 00 je 7c205 <CFG80211DRV_IoctlHandle+0x1115>
7b61c: 80 fb 06 cmp $0x6,%bl
7b61f: 0f 85 78 fc ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b625: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
if (IfType == RT_CMD_80211_IFTYPE_AP || IfType == RT_CMD_80211_IFTYPE_P2P_GO) {
7b62c: 4c 89 e7 mov %r12,%rdi
7b62f: e8 00 00 00 00 callq 7b634 <CFG80211DRV_IoctlHandle+0x544>
7b634: 41 8b 55 04 mov 0x4(%r13),%edx
7b638: 31 c9 xor %ecx,%ecx
if ((IfType == RT_CMD_80211_IFTYPE_STATION) && (FlgIsChanged == TRUE)) {
7b63a: be 00 14 00 00 mov $0x1400,%esi
7b63f: 4c 89 e7 mov %r12,%rdi
7b642: e8 00 00 00 00 callq 7b647 <CFG80211DRV_IoctlHandle+0x557>
if (IfType == RT_CMD_80211_IFTYPE_ADHOC) {
7b647: 31 c0 xor %eax,%eax
7b649: e9 51 fc ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
if (IfType == RT_CMD_80211_IFTYPE_MONITOR) {
7b64e: 4d 89 ac 24 e0 a4 13 mov %r13,0x13a4e0(%r12)
7b655: 00
Set_NetworkType_Proc(pAd, "Monitor");
7b656: 31 c0 xor %eax,%eax
7b658: e9 42 fc ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b65d: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b664 <CFG80211DRV_IoctlHandle+0x574>
RTMP_IO_WRITE32(pAd, RX_FILTR_CFG, pChan->MonFilterFlag);
7b664: 76 0e jbe 7b674 <CFG80211DRV_IoctlHandle+0x584>
7b666: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b66e <CFG80211DRV_IoctlHandle+0x57e>
7b66d: 00
7b66e: 0f 84 56 0f 00 00 je 7c5ca <CFG80211DRV_IoctlHandle+0x14da>
7b674: 41 c6 84 24 e1 2f 00 movb $0x0,0x2fe1(%r12)
7b67b: 00 00
return NDIS_STATUS_SUCCESS;
7b67d: 41 c6 84 24 86 a4 13 movb $0x0,0x13a486(%r12)
7b684: 00 00
7b686: 31 c0 xor %eax,%eax
break;
7b688: 41 c6 84 24 88 a4 13 movb $0x0,0x13a488(%r12)
7b68f: 00 00
#endif /CONFIG_STA_SUPPORT/
static int CFG80211_reSetToDefault(void pAdCB)
{
PRTMP_ADAPTER pAd = (PRTMP_ADAPTER)pAdCB;
PCFG80211_CTRL pCfg80211_ctrl = &pAd->cfg80211_ctrl;
DBGPRINT(RT_DEBUG_TRACE, (" %s\n", FUNCTION));
7b691: 41 c6 84 24 87 a4 13 movb $0x0,0x13a487(%r12)
7b698: 00 00
7b69a: 41 c6 84 24 89 a4 13 movb $0x0,0x13a489(%r12)
7b6a1: 00 00
7b6a3: 41 c6 84 24 30 a4 13 movb $0x0,0x13a430(%r12)
7b6aa: 00 00
#ifdef CONFIG_STA_SUPPORT
/
Driver Internal Parm /
pAd->StaCfg.bAutoConnectByBssid = FALSE;
7b6ac: 41 c6 84 24 31 a4 13 movb $0x0,0x13a431(%r12)
7b6b3: 00 00
#endif /CONFIG_STA_SUPPORT/
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterProbeReqFrame = FALSE;
7b6b5: 41 c6 84 24 51 a3 13 movb $0x0,0x13a351(%r12)
7b6bc: 00 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterActionFrame = FALSE;
7b6be: e9 dc fb ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount = 0;
7b6c3: 41 0f b6 84 24 c0 19 movzbl 0x19c0(%r12),%eax
7b6ca: 00 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount = 0;
7b6cc: 49 8d 55 10 lea 0x10(%r13),%rdx
7b6d0: be 4c 13 00 00 mov $0x134c,%esi
pCfg80211_ctrl->Cfg80211RocTimerInit = FALSE;
7b6d5: 4c 89 e7 mov %r12,%rdi
7b6d8: 41 88 45 00 mov %al,0x0(%r13)
pCfg80211_ctrl->Cfg80211RocTimerRunning = FALSE;
7b6dc: 41 0f b6 84 24 d6 31 movzbl 0x31d6(%r12),%eax
7b6e3: 00 00
pCfg80211_ctrl->FlgCfg80211Scanning = FALSE;
7b6e5: c0 e8 03 shr $0x3,%al
7b6e8: 83 e0 07 and $0x7,%eax
7b6eb: 41 88 45 01 mov %al,0x1(%r13)
7b6ef: 41 0f b6 84 24 13 36 movzbl 0x3613(%r12),%eax
7b6f6: 00 00
CFG80211_BANDINFO_FILL(pAd, pBandInfo);
7b6f8: 41 88 45 02 mov %al,0x2(%r13)
7b6fc: 41 0f b6 84 24 14 36 movzbl 0x3614(%r12),%eax
7b703: 00 00
7b705: 41 c7 45 04 00 00 00 movl $0x0,0x4(%r13)
7b70c: 00
7b70d: 41 88 45 03 mov %al,0x3(%r13)
7b711: 41 80 bc 24 da 30 00 cmpb $0x2,0x30da(%r12)
7b718: 00 02
7b71a: 41 c7 45 08 80 00 00 movl $0x80,0x8(%r13)
7b721: 00
7b722: 41 0f 94 45 14 sete 0x14(%r13)
7b727: 41 0f b7 84 24 ba 31 movzwl 0x31ba(%r12),%eax
7b72e: 00 00
7b730: 66 41 89 45 0c mov %ax,0xc(%r13)
7b735: 41 0f b7 84 24 bc 31 movzwl 0x31bc(%r12),%eax
7b73c: 00 00
7b73e: 41 c7 45 10 00 00 00 movl $0x0,0x10(%r13)
7b745: 00
7b746: 66 41 89 45 0e mov %ax,0xe(%r13)
7b74b: e8 00 00 00 00 callq 7b750 <CFG80211DRV_IoctlHandle+0x660>
7b750: 31 c0 xor %eax,%eax
7b752: e9 48 fb ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b757: 44 89 f2 mov %r14d,%edx
7b75a: 4c 89 ee mov %r13,%rsi
7b75d: 4c 89 e7 mov %r12,%rdi
7b760: e8 00 00 00 00 callq 7b765 <CFG80211DRV_IoctlHandle+0x675>
7b765: 31 c0 xor %eax,%eax
7b767: e9 33 fb ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b76c: 4c 89 ee mov %r13,%rsi
7b76f: 4c 89 e7 mov %r12,%rdi
7b772: e8 00 00 00 00 callq 7b777 <CFG80211DRV_IoctlHandle+0x687>
7b777: 3c 01 cmp $0x1,%al
7b779: 0f 95 c0 setne %al
7b77c: 0f b6 c0 movzbl %al,%eax
7b77f: e9 1b fb ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
break;
7b784: 49 83 fe 09 cmp $0x9,%r14
RTMP_CFG80211_VirtualIF_Remove(pAd, pData, Data);
7b788: 0f 85 0f fb ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b78e: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 7b794 <CFG80211DRV_IoctlHandle+0x6a4>
7b794: 85 c0 test %eax,%eax
return NDIS_STATUS_SUCCESS;
7b796: 0f 85 46 0e 00 00 jne 7c5e2 <CFG80211DRV_IoctlHandle+0x14f2>
if (CFG80211DRV_OpsVifAdd(pAd, pData) != TRUE)
7b79c: 41 80 bc 24 51 a3 13 cmpb $0x1,0x13a351(%r12)
7b7a3: 00 01
7b7a5: 0f 85 f2 fa ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7b7ab: 49 8b bc 24 e0 a4 13 mov 0x13a4e0(%r12),%rdi
7b7b2: 00
7b7b3: be 01 00 00 00 mov $0x1,%esi
if (Data == NETDEV_GOING_DOWN) {
7b7b8: e8 00 00 00 00 callq 7b7bd <CFG80211DRV_IoctlHandle+0x6cd>
7b7bd: 41 c6 84 24 51 a3 13 movb $0x0,0x13a351(%r12)
7b7c4: 00 00
DBGPRINT(RT_DEBUG_ERROR,
7b7c6: 31 c0 xor %eax,%eax
7b7c8: e9 d2 fa ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
if (pAd->cfg80211_ctrl.FlgCfg80211Scanning == TRUE) {
7b7cd: 44 89 f6 mov %r14d,%esi
7b7d0: 4c 89 e7 mov %r12,%rdi
7b7d3: e8 00 00 00 00 callq 7b7d8 <CFG80211DRV_IoctlHandle+0x6e8>
7b7d8: 31 c0 xor %eax,%eax
7b7da: e9 c0 fa ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
CFG80211OS_ScanEnd(pAd->pCfg80211_CB, TRUE);
7b7df: 44 89 f6 mov %r14d,%esi
7b7e2: 4c 89 e7 mov %r12,%rdi
7b7e5: e8 00 00 00 00 callq 7b7ea <CFG80211DRV_IoctlHandle+0x6fa>
7b7ea: 31 c0 xor %eax,%eax
7b7ec: e9 ae fa ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pAd->cfg80211_ctrl.FlgCfg80211Scanning = FALSE;
7b7f1: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7b7f8 <CFG80211DRV_IoctlHandle+0x708>
return NDIS_STATUS_SUCCESS;
7b7f8: 76 0e jbe 7b808 <CFG80211DRV_IoctlHandle+0x718>
7b7fa: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b802 <CFG80211DRV_IoctlHandle+0x712>
7b801: 00
CFG80211DRV_OpsCancelRemainOnChannel(pAd, Data);
7b802: 0f 84 65 0d 00 00 je 7c56d <CFG80211DRV_IoctlHandle+0x147d>
return NDIS_STATUS_SUCCESS;
7b808: 45 88 b4 24 ec 20 00 mov %r14b,0x20ec(%r12)
7b80f: 00
CFG80211_setPowerMgmt(pAd, Data);
7b810: 31 c0 xor %eax,%eax
7b812: e9 88 fa ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b817: 41 0f b6 55 00 movzbl 0x0(%r13),%edx
break;
7b81c: 80 fa 01 cmp $0x1,%dl
7b81f: 0f 86 b8 06 00 00 jbe 7bedd <CFG80211DRV_IoctlHandle+0xded>
DBGPRINT(RT_DEBUG_TRACE, ("Set Sta Default Key: %d\n", Data));
7b825: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 7b82b <CFG80211DRV_IoctlHandle+0x73b>
7b82b: 49 8d 5d 01 lea 0x1(%r13),%rbx
7b82f: 83 f8 02 cmp $0x2,%eax
7b832: 76 0e jbe 7b842 <CFG80211DRV_IoctlHandle+0x752>
7b834: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b83c <CFG80211DRV_IoctlHandle+0x74c>
7b83b: 00
pAd->StaCfg.wdev.DefaultKeyId = Data; /
base 0 /
7b83c: 0f 84 9a 0c 00 00 je 7c4dc <CFG80211DRV_IoctlHandle+0x13ec>
return NDIS_STATUS_SUCCESS;
7b842: 41 0f b6 55 33 movzbl 0x33(%r13),%edx
if (pKeyInfo->KeyType == RT_CMD_80211_KEY_WEP40 ||
7b847: 48 89 9d 58 ff ff ff mov %rbx,-0xa8(%rbp)
7b84e: 89 95 64 ff ff ff mov %edx,-0x9c(%rbp)
7b854: 41 0f b6 55 35 movzbl 0x35(%r13),%edx
DBGPRINT(RT_DEBUG_TRACE, ("%s ==> %d, %d, %zx...\n",
7b859: 66 89 95 60 ff ff ff mov %dx,-0xa0(%rbp)
7b860: 41 8b 94 24 e0 20 00 mov 0x20e0(%r12),%edx
7b867: 00
7b868: 83 fa 04 cmp $0x4,%edx
7b86b: 0f 84 5b 07 00 00 je 7bfcc <CFG80211DRV_IoctlHandle+0xedc>
7b871: 83 fa 06 cmp $0x6,%edx
IoctlSec.KeyIdx = pKeyInfo->KeyId;
7b874: 0f 84 81 07 00 00 je 7bffb <CFG80211DRV_IoctlHandle+0xf0b>
IoctlSec.pData = pKeyInfo->KeyBuf;
7b87a: 41 80 7d 34 00 cmpb $0x0,0x34(%r13)
IoctlSec.KeyIdx = pKeyInfo->KeyId;
7b87f: 41 b8 02 00 00 00 mov $0x2,%r8d
IoctlSec.length = pKeyInfo->KeyLen;
7b885: 66 44 89 85 72 ff ff mov %r8w,-0x8e(%rbp)
7b88c: ff
7b88d: 0f 85 59 05 00 00 jne 7bdec <CFG80211DRV_IoctlHandle+0xcfc>
if (pAd->StaCfg.wdev.WepStatus == Ndis802_11Encryption2Enabled)
7b893: 41 8b 94 24 c8 21 00 mov 0x21c8(%r12),%edx
7b89a: 00
7b89b: 83 fa 04 cmp $0x4,%edx
7b89e: 0f 84 fe 08 00 00 je 7c1a2 <CFG80211DRV_IoctlHandle+0x10b2>
else if (pAd->StaCfg.wdev.WepStatus == Ndis802_11Encryption3Enabled)
7b8a4: 83 fa 06 cmp $0x6,%edx
7b8a7: 0f 84 3a 09 00 00 je 7c1e7 <CFG80211DRV_IoctlHandle+0x10f7>
if (pKeyInfo->bPairwise == FALSE)
7b8ad: 83 f8 02 cmp $0x2,%eax
IoctlSec.flags = RT_CMD_STA_IOCTL_SECURITY_ENABLED;
7b8b0: 76 0e jbe 7b8c0 <CFG80211DRV_IoctlHandle+0x7d0>
7b8b2: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7b8ba <CFG80211DRV_IoctlHandle+0x7ca>
7b8b9: 00
7b8ba: 0f 84 d2 0b 00 00 je 7c492 <CFG80211DRV_IoctlHandle+0x13a2>
if (pKeyInfo->bPairwise == FALSE)
7b8c0: bf 02 00 00 00 mov $0x2,%edi
if (pAd->StaCfg.GroupCipher == Ndis802_11Encryption2Enabled)
7b8c5: 66 89 bd 70 ff ff ff mov %di,-0x90(%rbp)
7b8cc: 4c 8d 85 58 ff ff ff lea -0xa8(%rbp),%r8
7b8d3: c7 04 24 00 01 00 00 movl $0x100,(%rsp)
else if (pAd->StaCfg.GroupCipher == Ndis802_11Encryption3Enabled)
7b8da: 45 31 c9 xor %r9d,%r9d
DBGPRINT(RT_DEBUG_TRACE, ("Install GTK: %d\n", IoctlSec.Alg));
7b8dd: 31 c9 xor %ecx,%ecx
7b8df: ba 1c a0 00 00 mov $0xa01c,%edx
7b8e4: 31 f6 xor %esi,%esi
7b8e6: 4c 89 e7 mov %r12,%rdi
7b8e9: e8 00 00 00 00 callq 7b8ee <CFG80211DRV_IoctlHandle+0x7fe>
7b8ee: 31 c0 xor %eax,%eax
IoctlSec.ext_flags = RT_CMD_STA_IOCTL_SECURTIY_EXT_GROUP_KEY;
7b8f0: e9 aa f9 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7b8f5: 41 f6 84 24 da 30 00 testb $0x18,0x30da(%r12)
7b8fc: 00 18
RTMP_STA_IoctlHandle(pAd, NULL, CMD_RTPRIV_IOCTL_STA_SIOCSIWENCODEEXT,
7b8fe: 48 c7 85 58 ff ff ff movq $0x0,-0xa8(%rbp)
7b905: 00 00 00 00
7b909: 0f 84 17 04 00 00 je 7bd26 <CFG80211DRV_IoctlHandle+0xc36>
7b90f: 41 0f b6 84 24 c1 aa movzbl 0xbaac1(%r12),%eax
7b916: 0b 00
7b918: c0 e8 05 shr $0x5,%al
7b91b: 0f b6 c0 movzbl %al,%eax
return NDIS_STATUS_SUCCESS;
7b91e: 83 f8 01 cmp $0x1,%eax
7b921: 0f 8e ff 03 00 00 jle 7bd26 <CFG80211DRV_IoctlHandle+0xc36>
if ((!WMODE_CAP_N(pAd->CommonCfg.PhyMode)) ||
7b927: 45 0f b7 b4 24 c0 aa movzwl 0xbaac0(%r12),%r14d
7b92e: 0b 00
ULONG DataRate = 0;
7b930: 44 89 f3 mov %r14d,%ebx
7b933: 83 e3 3f and $0x3f,%ebx
7b936: 89 df mov %ebx,%edi
7b938: e8 00 00 00 00 callq 7b93d <CFG80211DRV_IoctlHandle+0x84d>
if ((!WMODE_CAP_N(pAd->CommonCfg.PhyMode)) ||
7b93d: 48 8d bd 58 ff ff ff lea -0xa8(%rbp),%rdi
(pAd->MacTab.Content[BSSID_WCID].HTPhyMode.field.MODE <= MODE_OFDM)) {
7b944: 44 89 f1 mov %r14d,%ecx
7b947: 44 89 f2 mov %r14d,%edx
7b94a: 44 89 f6 mov %r14d,%esi
7b94d: 66 c1 e9 07 shr $0x7,%cx
if ((!WMODE_CAP_N(pAd->CommonCfg.PhyMode)) ||
7b951: 66 c1 ea 09 shr $0x9,%dx
7b955: 66 c1 ee 0d shr $0xd,%si
PhyInfo.word = pAd->MacTab.Content[BSSID_WCID].HTPhyMode.word;
7b959: 83 e1 03 and $0x3,%ecx
7b95c: 83 e2 01 and $0x1,%edx
7b95f: 48 89 3c 24 mov %rdi,(%rsp)
newRateGetAntenna(PhyInfo.field.MCS),&DataRate);
7b963: 44 0f b6 c8 movzbl %al,%r9d
7b967: 40 0f b6 f6 movzbl %sil,%esi
7b96b: 41 89 d8 mov %ebx,%r8d
RtmpDrvRateGet(pAd, PhyInfo.field.MODE, PhyInfo.field.ShortGI,
7b96e: 4c 89 e7 mov %r12,%rdi
7b971: e8 00 00 00 00 callq 7b976 <CFG80211DRV_IoctlHandle+0x886>
PhyInfo.field.BW,PhyInfo.field.MCS,
7b976: 48 ba db 34 b6 d7 82 movabs $0x431bde82d7b634db,%rdx
7b97d: de 1b 43
7b980: 48 89 d0 mov %rdx,%rax
RtmpDrvRateGet(pAd, PhyInfo.field.MODE, PhyInfo.field.ShortGI,
7b983: 48 f7 a5 58 ff ff ff mulq -0xa8(%rbp)
7b98a: 44 89 f0 mov %r14d,%eax
7b98d: 0f b6 c4 movzbl %ah,%eax
7b990: 89 c1 mov %eax,%ecx
7b992: 83 e1 c0 and $0xffffffc0,%ecx
7b995: 48 c1 ea 12 shr $0x12,%rdx
7b999: 80 f9 40 cmp $0x40,%cl
7b99c: 48 89 95 58 ff ff ff mov %rdx,-0xa8(%rbp)
7b9a3: 0f 85 ea 03 00 00 jne 7bd93 <CFG80211DRV_IoctlHandle+0xca3>
DataRate /= 2;
7b9a9: 66 41 f7 c6 80 01 test $0x180,%r14w
7b9af: 74 05 je 7b9b6 <CFG80211DRV_IoctlHandle+0x8c6>
7b9b1: 41 83 4d 10 02 orl $0x2,0x10(%r13)
7b9b6: a8 02 test $0x2,%al
7b9b8: 74 05 je 7b9bf <CFG80211DRV_IoctlHandle+0x8cf>
if ((PhyInfo.field.MODE == MODE_HTMIX) ||
7b9ba: 41 83 4d 10 04 orl $0x4,0x10(%r13)
7b9bf: 41 89 5d 14 mov %ebx,0x14(%r13)
7b9c3: 49 8d b4 24 dc 23 00 lea 0x23dc(%r12),%rsi
7b9ca: 00
7b9cb: 4c 89 e7 mov %r12,%rdi
DataRate /= 2;
7b9ce: e8 00 00 00 00 callq 7b9d3 <CFG80211DRV_IoctlHandle+0x8e3>
if ((PhyInfo.field.MODE == MODE_HTMIX) ||
7b9d3: 0f be c0 movsbl %al,%eax
7b9d6: 41 89 45 18 mov %eax,0x18(%r13)
if (PhyInfo.field.BW)
7b9da: 31 c0 xor %eax,%eax
7b9dc: e9 be f8 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pIbssInfo->TxRateFlags |= RT_CMD_80211_TXRATE_BW_40;
7b9e1: bf 70 06 00 00 mov $0x670,%edi
if (PhyInfo.field.ShortGI)
7b9e6: 41 c6 84 24 99 21 00 movb $0x0,0x2199(%r12)
7b9ed: 00 00
pIbssInfo->TxRateMCS = PhyInfo.field.MCS;
7b9ef: 41 c6 84 24 52 a3 13 movb $0x0,0x13a352(%r12)
7b9f6: 00 00
RSSI = RTMPAvgRssi(pAd, &pAd->StaCfg.RssiSample);
7b9f8: 41 c6 84 24 f0 41 01 movb $0x20,0x141f0(%r12)
7b9ff: 00 20
7ba01: 49 c7 84 24 d0 41 01 movq $0x0,0x141d0(%r12)
7ba08: 00 00 00 00 00
return NDIS_STATUS_SUCCESS;
7ba0d: 49 c7 84 24 d8 41 01 movq $0x0,0x141d8(%r12)
7ba14: 00 00 00 00 00
pAd->StaCfg.bAutoReconnect = FALSE;
7ba19: 49 c7 84 24 e0 41 01 movq $0x0,0x141e0(%r12)
7ba20: 00 00 00 00 00
pAd->cfg80211_ctrl.FlgCfg80211Connecting = FALSE;
7ba25: 49 c7 84 24 e8 41 01 movq $0x0,0x141e8(%r12)
7ba2c: 00 00 00 00 00
NdisZeroMemory(pAd->MlmeAux.AutoReconnectSsid, pAd->MlmeAux.AutoReconnectSsidLen);
7ba31: e8 00 00 00 00 callq 7ba36 <CFG80211DRV_IoctlHandle+0x946>
7ba36: 48 89 c3 mov %rax,%rbx
7ba39: 41 8b 84 24 40 31 00 mov 0x3140(%r12),%eax
7ba40: 00
7ba41: 41 b9 03 00 00 00 mov $0x3,%r9d
7ba47: 66 44 89 4d 82 mov %r9w,-0x7e(%rbp)
7ba4c: 48 89 de mov %rbx,%rsi
7ba4f: 4c 89 e7 mov %r12,%rdi
7ba52: 89 85 7c ff ff ff mov %eax,-0x84(%rbp)
7ba58: 41 0f b7 84 24 44 31 movzwl 0x3144(%r12),%eax
7ba5f: 00 00
pMsgElem = os_alloc_mem(sizeof(MLME_QUEUE_ELEM));
7ba61: 48 c7 83 50 06 00 00 movq $0x8,0x650(%rbx)
7ba68: 08 00 00 00
COPY_MAC_ADDR(DeAuthReq.Addr, pAd->CommonCfg.Bssid);
7ba6c: 66 89 45 80 mov %ax,-0x80(%rbp)
7ba70: 48 8b 85 7c ff ff ff mov -0x84(%rbp),%rax
DeAuthReq.Reason = REASON_DEAUTH_STA_LEAVING;
7ba77: 48 89 03 mov %rax,(%rbx)
7ba7a: e8 00 00 00 00 callq 7ba7f <CFG80211DRV_IoctlHandle+0x98f>
MlmeDeauthReqAction(pAd, pMsgElem);
7ba7f: 48 89 df mov %rbx,%rdi
COPY_MAC_ADDR(DeAuthReq.Addr, pAd->CommonCfg.Bssid);
7ba82: e8 00 00 00 00 callq 7ba87 <CFG80211DRV_IoctlHandle+0x997>
7ba87: 31 f6 xor %esi,%esi
7ba89: 4c 89 e7 mov %r12,%rdi
7ba8c: e8 00 00 00 00 callq 7ba91 <CFG80211DRV_IoctlHandle+0x9a1>
pMsgElem->MsgLen = sizeof(MLME_DEAUTH_REQ_STRUCT);
7ba91: 31 c0 xor %eax,%eax
7ba93: e9 07 f8 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7ba98: 41 c6 84 24 99 21 00 movb $0x1,0x2199(%r12)
7ba9f: 00 01
NdisMoveMemory(pMsgElem->Msg, &DeAuthReq, sizeof(MLME_DEAUTH_REQ_STRUCT));
7baa1: 41 8b 45 00 mov 0x0(%r13),%eax
7baa5: 4c 89 e7 mov %r12,%rdi
7baa8: 66 41 89 84 24 46 31 mov %ax,0x3146(%r12)
7baaf: 00 00
os_free_mem(pMsgElem);
7bab1: 49 8b 75 08 mov 0x8(%r13),%rsi
7bab5: e8 00 00 00 00 callq 7baba <CFG80211DRV_IoctlHandle+0x9ca>
LinkDown(pAd, FALSE);
7baba: 31 c0 xor %eax,%eax
7babc: e9 de f7 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
return NDIS_STATUS_SUCCESS;
7bac1: 41 0f b6 f6 movzbl %r14b,%esi
7bac5: 4c 89 e7 mov %r12,%rdi
pAd->StaCfg.bAutoReconnect = TRUE;
7bac8: e8 00 00 00 00 callq 7bacd <CFG80211DRV_IoctlHandle+0x9dd>
7bacd: 3c 01 cmp $0x1,%al
7bacf: 0f 95 c0 setne %al
pAd->CommonCfg.BeaconPeriod = pIbssInfo->BeaconInterval;
7bad2: 0f b6 c0 movzbl %al,%eax
Set_SSID_Proc(pAd, (PSTRING)pIbssInfo->pSsid);
7bad5: e9 c5 f7 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pAd->CommonCfg.BeaconPeriod = pIbssInfo->BeaconInterval;
7bada: 4c 89 ee mov %r13,%rsi
7badd: 4c 89 e7 mov %r12,%rdi
7bae0: e8 00 00 00 00 callq 7bae5 <CFG80211DRV_IoctlHandle+0x9f5>
Set_SSID_Proc(pAd, (PSTRING)pIbssInfo->pSsid);
7bae5: 3c 01 cmp $0x1,%al
7bae7: 0f 95 c0 setne %al
return NDIS_STATUS_SUCCESS;
7baea: 0f b6 c0 movzbl %al,%eax
7baed: e9 ad f7 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
if (CFG80211DRV_OpsScanCheckStatus(pAd, Data) != TRUE)
7baf2: 44 89 f6 mov %r14d,%esi
7baf5: 4c 89 e7 mov %r12,%rdi
7baf8: e8 00 00 00 00 callq 7bafd <CFG80211DRV_IoctlHandle+0xa0d>
7bafd: 31 c0 xor %eax,%eax
7baff: e9 9b f7 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bb04: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bb0b <CFG80211DRV_IoctlHandle+0xa1b>
if (CFG80211DRV_OpsChgVirtualInf(pAd, pData) != TRUE)
7bb0b: 0f 86 23 02 00 00 jbe 7bd34 <CFG80211DRV_IoctlHandle+0xc44>
7bb11: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bb19 <CFG80211DRV_IoctlHandle+0xa29>
7bb18: 00
7bb19: 0f 84 f8 08 00 00 je 7c417 <CFG80211DRV_IoctlHandle+0x1327>
7bb1f: 41 83 7d 04 ff cmpl $0xffffffff,0x4(%r13)
CFG80211_ScanStatusLockInit(pAd, Data);
7bb24: 74 24 je 7bb4a <CFG80211DRV_IoctlHandle+0xa5a>
7bb26: 41 8b 45 04 mov 0x4(%r13),%eax
7bb2a: 89 c2 mov %eax,%edx
7bb2c: 85 d2 test %edx,%edx
return NDIS_STATUS_SUCCESS;
7bb2e: 4c 89 e7 mov %r12,%rdi
break;
7bb31: 40 0f 95 c6 setne %sil
CFG80211DBG(RT_DEBUG_TRACE, ("%s\n", FUNCTION));
7bb35: 40 0f b6 c6 movzbl %sil,%eax
7bb39: 40 0f b6 f6 movzbl %sil,%esi
7bb3d: 49 89 84 24 f0 31 00 mov %rax,0x31f0(%r12)
7bb44: 00
7bb45: e8 00 00 00 00 callq 7bb4a <CFG80211DRV_IoctlHandle+0xa5a>
7bb4a: 41 8b 55 00 mov 0x0(%r13),%edx
7bb4e: 83 fa ff cmp $0xffffffff,%edx
if (pBssInfo->use_short_preamble != -1) {
7bb51: 74 30 je 7bb83 <CFG80211DRV_IoctlHandle+0xa93>
7bb53: 31 c0 xor %eax,%eax
7bb55: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bb5c <CFG80211DRV_IoctlHandle+0xa6c>
Rt802_11PreambleLong : Rt802_11PreambleShort);
7bb5c: 0f 86 3d f7 ff ff jbe 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bb62: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bb6a <CFG80211DRV_IoctlHandle+0xa7a>
7bb69: 00
MlmeSetTxPreamble(pAd, (USHORT)pAd->CommonCfg.TxPreamble);
7bb6a: 0f 85 2d f7 ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
Rt802_11PreambleLong : Rt802_11PreambleShort);
7bb70: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
MlmeSetTxPreamble(pAd, (USHORT)pAd->CommonCfg.TxPreamble);
7bb77: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
if (pBssInfo->use_cts_prot != -1) {
7bb7e: e8 00 00 00 00 callq 7bb83 <CFG80211DRV_IoctlHandle+0xa93>
return NDIS_STATUS_SUCCESS;
7bb83: 41 8b 55 08 mov 0x8(%r13),%edx
CFG80211DBG(RT_DEBUG_TRACE,
7bb87: 83 fa ff cmp $0xffffffff,%edx
7bb8a: 0f 84 0d f7 ff ff je 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bb90: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bb97 <CFG80211DRV_IoctlHandle+0xaa7>
7bb97: 0f 86 00 f7 ff ff jbe 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bb9d: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bba5 <CFG80211DRV_IoctlHandle+0xab5>
7bba4: 00
7bba5: 0f 85 f2 f6 ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bbab: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7bbb2: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
if (pBssInfo->use_short_slot_time != -1) {
7bbb9: e8 00 00 00 00 callq 7bbbe <CFG80211DRV_IoctlHandle+0xace>
7bbbe: 31 c0 xor %eax,%eax
CFG80211DBG(RT_DEBUG_TRACE,
7bbc0: e9 da f6 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bbc5: 45 84 f6 test %r14b,%r14b
7bbc8: 41 0f b6 84 24 89 a4 movzbl 0x13a489(%r12),%eax
7bbcf: 13 00
7bbd1: 0f 84 e2 01 00 00 je 7bdb9 <CFG80211DRV_IoctlHandle+0xcc9>
7bbd7: 83 c0 01 add $0x1,%eax
7bbda: 41 88 84 24 89 a4 13 mov %al,0x13a489(%r12)
7bbe1: 00
7bbe2: 84 c0 test %al,%al
7bbe4: 0f 8e dc 02 00 00 jle 7bec6 <CFG80211DRV_IoctlHandle+0xdd6>
7bbea: 41 c6 84 24 88 a4 13 movb $0x1,0x13a488(%r12)
7bbf1: 00 01
return NDIS_STATUS_SUCCESS;
7bbf3: 83 3d 00 00 00 00 03 cmpl $0x3,0x0(%rip) # 7bbfa <CFG80211DRV_IoctlHandle+0xb0a>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount++;
7bbfa: 0f 86 9d f6 ff ff jbe 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bc00: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bc08 <CFG80211DRV_IoctlHandle+0xb18>
7bc07: 00
7bc08: 0f 85 8f f6 ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bc0e: 41 0f be 8c 24 89 a4 movsbl 0x13a489(%r12),%ecx
7bc15: 13 00
if (pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount > 0) {
7bc17: 41 0f b6 94 24 88 a4 movzbl 0x13a488(%r12),%edx
7bc1e: 13 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterActionFrame = TRUE;
7bc20: 41 0f b6 f6 movzbl %r14b,%esi
DBGPRINT(RT_DEBUG_INFO,
7bc24: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7bc2b: e8 00 00 00 00 callq 7bc30 <CFG80211DRV_IoctlHandle+0xb40>
7bc30: 31 c0 xor %eax,%eax
7bc32: e9 68 f6 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bc37: 41 0f b6 d6 movzbl %r14b,%edx
7bc3b: 4c 89 ee mov %r13,%rsi
7bc3e: 4c 89 e7 mov %r12,%rdi
7bc41: e8 00 00 00 00 callq 7bc46 <CFG80211DRV_IoctlHandle+0xb56>
7bc46: 0f b6 c0 movzbl %al,%eax
7bc49: e9 51 f6 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bc4e: 4c 89 f2 mov %r14,%rdx
CFG80211DRV_OpsMgmtFrameActionRegister(pAd, pData, Data);
7bc51: 4c 89 ee mov %r13,%rsi
DBGPRINT(RT_DEBUG_INFO,
7bc54: 4c 89 e7 mov %r12,%rdi
7bc57: e8 00 00 00 00 callq 7bc5c <CFG80211DRV_IoctlHandle+0xb6c>
7bc5c: 31 c0 xor %eax,%eax
7bc5e: e9 3c f6 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
return NDIS_STATUS_SUCCESS;
7bc63: 4c 89 f6 mov %r14,%rsi
7bc66: 4c 89 e7 mov %r12,%rdi
return CFG80211DRV_OpsScanSetSpecifyChannel(pAd,pData, Data);
7bc69: e8 00 00 00 00 callq 7bc6e <CFG80211DRV_IoctlHandle+0xb7e>
7bc6e: 31 c0 xor %eax,%eax
7bc70: e9 2a f6 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bc75: 45 84 f6 test %r14b,%r14b
7bc78: 41 0f b6 84 24 87 a4 movzbl 0x13a487(%r12),%eax
7bc7f: 13 00
CFG80211_SendMgmtFrame(pAd, pData, Data);
7bc81: 0f 84 22 01 00 00 je 7bda9 <CFG80211DRV_IoctlHandle+0xcb9>
7bc87: 83 c0 01 add $0x1,%eax
7bc8a: 41 88 84 24 87 a4 13 mov %al,0x13a487(%r12)
7bc91: 00
break;
7bc92: 84 c0 test %al,%al
CFG80211_SwitchTxChannel(pAd, Data);
7bc94: 0f 8e 15 02 00 00 jle 7beaf <CFG80211DRV_IoctlHandle+0xdbf>
7bc9a: 41 c6 84 24 86 a4 13 movb $0x1,0x13a486(%r12)
7bca1: 00 01
break;
7bca3: 83 3d 00 00 00 00 03 cmpl $0x3,0x0(%rip) # 7bcaa <CFG80211DRV_IoctlHandle+0xbba>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount++;
7bcaa: 0f 86 ed f5 ff ff jbe 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bcb0: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bcb8 <CFG80211DRV_IoctlHandle+0xbc8>
7bcb7: 00
7bcb8: 0f 85 df f5 ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7bcbe: 41 0f be 8c 24 87 a4 movsbl 0x13a487(%r12),%ecx
7bcc5: 13 00
if (pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount > 0) {
7bcc7: 41 0f b6 94 24 86 a4 movzbl 0x13a486(%r12),%edx
7bcce: 13 00
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterProbeReqFrame = TRUE;
7bcd0: 41 0f b6 f6 movzbl %r14b,%esi
DBGPRINT(RT_DEBUG_INFO, ("[%d] pAd->Cfg80211RegisterProbeReqFrame=%d[%d]\n",
7bcd4: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7bcdb: e8 00 00 00 00 callq 7bce0 <CFG80211DRV_IoctlHandle+0xbf0>
7bce0: 31 c0 xor %eax,%eax
7bce2: e9 b8 f5 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bce7: 44 89 f2 mov %r14d,%edx
7bcea: 4c 89 ee mov %r13,%rsi
7bced: 4c 89 e7 mov %r12,%rdi
7bcf0: e8 00 00 00 00 callq 7bcf5 <CFG80211DRV_IoctlHandle+0xc05>
7bcf5: 31 c0 xor %eax,%eax
7bcf7: e9 a3 f5 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bcfc: b8 01 00 00 00 mov $0x1,%eax
CFG80211DRV_OpsMgmtFrameProbeRegister(pAd, pData, Data);
7bd01: e9 99 f5 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
DBGPRINT(RT_DEBUG_INFO, ("[%d] pAd->Cfg80211RegisterProbeReqFrame=%d[%d]\n",
7bd06: 49 89 c8 mov %rcx,%r8
7bd09: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
return NDIS_STATUS_SUCCESS;
7bd10: 48 89 d1 mov %rdx,%rcx
7bd13: 89 f2 mov %esi,%edx
7bd15: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
CFG80211DRV_OpsRemainOnChannel(pAd, pData, Data);
7bd1c: e8 00 00 00 00 callq 7bd21 <CFG80211DRV_IoctlHandle+0xc31>
7bd21: e9 12 f4 ff ff jmpq 7b138 <CFG80211DRV_IoctlHandle+0x48>
return NDIS_STATUS_SUCCESS;
7bd26: 45 0f b7 b4 24 12 21 movzwl 0x2112(%r12),%r14d
7bd2d: 00 00
return NDIS_STATUS_FAILURE;
7bd2f: e9 fc fb ff ff jmpq 7b930 <CFG80211DRV_IoctlHandle+0x840>
7bd34: 41 8b 55 04 mov 0x4(%r13),%edx
DBGPRINT(RT_DEBUG_TRACE,
7bd38: 83 fa ff cmp $0xffffffff,%edx
7bd3b: 0f 85 eb fd ff ff jne 7bb2c <CFG80211DRV_IoctlHandle+0xa3c>
7bd41: e9 04 fe ff ff jmpq 7bb4a <CFG80211DRV_IoctlHandle+0xa5a>
7bd46: 48 8b 0a mov (%rdx),%rcx
7bd49: 48 89 4d 85 mov %rcx,-0x7b(%rbp)
7bd4d: 89 c1 mov %eax,%ecx
7bd4f: 48 8b 74 0a f8 mov -0x8(%rdx,%rcx,1),%rsi
7bd54: 48 89 74 0b f8 mov %rsi,-0x8(%rbx,%rcx,1)
PhyInfo.word = pAd->StaCfg.wdev.HTPhyMode.word;
7bd59: 48 8d 4b 08 lea 0x8(%rbx),%rcx
7bd5d: 48 89 de mov %rbx,%rsi
7bd60: 48 83 e1 f8 and $0xfffffffffffffff8,%rcx
if (pBssInfo->use_short_preamble != -1) {
7bd64: 48 29 ce sub %rcx,%rsi
7bd67: 01 f0 add %esi,%eax
7bd69: 48 29 f2 sub %rsi,%rdx
7bd6c: 83 e0 f8 and $0xfffffff8,%eax
7bd6f: 83 f8 08 cmp $0x8,%eax
7bd72: 0f 82 30 f7 ff ff jb 7b4a8 <CFG80211DRV_IoctlHandle+0x3b8>
memcpy(SSID, pConnInfo->pSsid, SSIDLen);
7bd78: 83 e0 f8 and $0xfffffff8,%eax
7bd7b: 31 f6 xor %esi,%esi
7bd7d: 89 f7 mov %esi,%edi
7bd7f: 83 c6 08 add $0x8,%esi
7bd82: 4c 8b 04 3a mov (%rdx,%rdi,1),%r8
7bd86: 39 c6 cmp %eax,%esi
7bd88: 4c 89 04 39 mov %r8,(%rcx,%rdi,1)
7bd8c: 72 ef jb 7bd7d <CFG80211DRV_IoctlHandle+0xc8d>
7bd8e: e9 15 f7 ff ff jmpq 7b4a8 <CFG80211DRV_IoctlHandle+0x3b8>
7bd93: 8d 04 92 lea (%rdx,%rdx,4),%eax
7bd96: 41 c7 45 10 01 00 00 movl $0x1,0x10(%r13)
7bd9d: 00
7bd9e: 01 c0 add %eax,%eax
7bda0: 41 89 45 14 mov %eax,0x14(%r13)
7bda4: e9 1a fc ff ff jmpq 7b9c3 <CFG80211DRV_IoctlHandle+0x8d3>
7bda9: 83 e8 01 sub $0x1,%eax
7bdac: 41 88 84 24 87 a4 13 mov %al,0x13a487(%r12)
7bdb3: 00
7bdb4: e9 d9 fe ff ff jmpq 7bc92 <CFG80211DRV_IoctlHandle+0xba2>
7bdb9: 83 e8 01 sub $0x1,%eax
7bdbc: 41 88 84 24 89 a4 13 mov %al,0x13a489(%r12)
7bdc3: 00
pIbssInfo->TxRateMCS = DataRate
10; /
unit: 100kbps /
7bdc4: e9 19 fe ff ff jmpq 7bbe2 <CFG80211DRV_IoctlHandle+0xaf2>
pIbssInfo->TxRateFlags = RT_CMD_80211_TXRATE_LEGACY;
7bdc9: 44 8b 1d 00 00 00 00 mov 0x0(%rip),%r11d # 7bdd0 <CFG80211DRV_IoctlHandle+0xce0>
pIbssInfo->TxRateMCS = DataRate
10; /* unit: 100kbps */
7bdd0: 45 85 db test %r11d,%r11d
7bdd3: 0f 84 c4 f4 ff ff je 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount--;
7bdd9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7bde0: e8 00 00 00 00 callq 7bde5 <CFG80211DRV_IoctlHandle+0xcf5>
7bde5: 31 c0 xor %eax,%eax
7bde7: e9 b3 f4 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount--;
7bdec: 41 8b 94 24 cc 21 00 mov 0x21cc(%r12),%edx
7bdf3: 00
7bdf4: 83 fa 04 cmp $0x4,%edx
7bdf7: 0f 84 96 03 00 00 je 7c193 <CFG80211DRV_IoctlHandle+0x10a3>
CFG80211DBG(RT_DEBUG_ERROR, ("80211> Set the channel in AP Mode\n"));
7bdfd: 83 fa 06 cmp $0x6,%edx
7be00: 0f 84 f0 03 00 00 je 7c1f6 <CFG80211DRV_IoctlHandle+0x1106>
7be06: 83 f8 02 cmp $0x2,%eax
7be09: 76 0e jbe 7be19 <CFG80211DRV_IoctlHandle+0xd29>
7be0b: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7be13 <CFG80211DRV_IoctlHandle+0xd23>
7be12: 00
7be13: 0f 84 79 07 00 00 je 7c592 <CFG80211DRV_IoctlHandle+0x14a2>
return NDIS_STATUS_SUCCESS;
7be19: be 01 00 00 00 mov $0x1,%esi
if (pAd->StaCfg.PairCipher == Ndis802_11Encryption2Enabled)
7be1e: 66 89 b5 70 ff ff ff mov %si,-0x90(%rbp)
7be25: e9 a2 fa ff ff jmpq 7b8cc <CFG80211DRV_IoctlHandle+0x7dc>
7be2a: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7be31 <CFG80211DRV_IoctlHandle+0xd41>
else if (pAd->StaCfg.PairCipher == Ndis802_11Encryption3Enabled)
7be31: 0f 86 04 f6 ff ff jbe 7b43b <CFG80211DRV_IoctlHandle+0x34b>
DBGPRINT(RT_DEBUG_TRACE, ("Install PTK: %d\n", IoctlSec.Alg));
7be37: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7be3f <CFG80211DRV_IoctlHandle+0xd4f>
7be3e: 00
7be3f: 0f 85 f6 f5 ff ff jne 7b43b <CFG80211DRV_IoctlHandle+0x34b>
7be45: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
IoctlSec.ext_flags = RT_CMD_STA_IOCTL_SECURTIY_EXT_SET_TX_KEY;
7be4c: e8 00 00 00 00 callq 7be51 <CFG80211DRV_IoctlHandle+0xd61>
7be51: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7be58 <CFG80211DRV_IoctlHandle+0xd68>
7be58: 0f 86 dd f5 ff ff jbe 7b43b <CFG80211DRV_IoctlHandle+0x34b>
DBGPRINT(RT_DEBUG_TRACE,
7be5e: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7be66 <CFG80211DRV_IoctlHandle+0xd76>
7be65: 00
7be66: 0f 85 cf f5 ff ff jne 7b43b <CFG80211DRV_IoctlHandle+0x34b>
7be6c: 4c 89 ea mov %r13,%rdx
7be6f: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7be76: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7be7d: e8 00 00 00 00 callq 7be82 <CFG80211DRV_IoctlHandle+0xd92>
DBGPRINT(RT_DEBUG_TRACE, ("============================%s: %p\n", FUNCTION, pData));
7be82: e9 b4 f5 ff ff jmpq 7b43b <CFG80211DRV_IoctlHandle+0x34b>
7be87: 41 83 ee 02 sub $0x2,%r14d
7be8b: 45 88 b4 24 49 31 00 mov %r14b,0x3149(%r12)
7be92: 00
7be93: e9 0d f7 ff ff jmpq 7b5a5 <CFG80211DRV_IoctlHandle+0x4b5>
7be98: 41 c6 84 24 d9 36 00 movb $0x0,0x36d9(%r12)
7be9f: 00 00
7bea1: 41 80 8c 24 ad 31 00 orb $0x8,0x31ad(%r12)
7bea8: 00 08
7beaa: e9 b8 f6 ff ff jmpq 7b567 <CFG80211DRV_IoctlHandle+0x477>
7beaf: 41 c6 84 24 86 a4 13 movb $0x0,0x13a486(%r12)
7beb6: 00 00
pAd->CommonCfg.CentralChannel = pAd->CommonCfg.Channel - 2;
7beb8: 41 c6 84 24 87 a4 13 movb $0x0,0x13a487(%r12)
7bebf: 00 00
7bec1: e9 dd fd ff ff jmpq 7bca3 <CFG80211DRV_IoctlHandle+0xbb3>
7bec6: 41 c6 84 24 88 a4 13 movb $0x0,0x13a488(%r12)
7becd: 00 00
pAd->CommonCfg.HT_Disable = 0;
7becf: 41 c6 84 24 89 a4 13 movb $0x0,0x13a489(%r12)
7bed6: 00 00
pAd->CommonCfg.RegTransmitSetting.field.BW = BW_40;
7bed8: e9 16 fd ff ff jmpq 7bbf3 <CFG80211DRV_IoctlHandle+0xb03>
7bedd: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bee4 <CFG80211DRV_IoctlHandle+0xdf4>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterProbeReqFrame = FALSE;
7bee4: 0f 86 b3 f3 ff ff jbe 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ProbeReqCount = 0;
7beea: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bef2 <CFG80211DRV_IoctlHandle+0xe02>
7bef1: 00
7bef2: 0f 85 a5 f3 ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
pCfg80211_ctrl->cfg80211MainDev.Cfg80211RegisterActionFrame = FALSE;
7bef8: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
pCfg80211_ctrl->cfg80211MainDev.Cfg80211ActionCount = 0;
7beff: e8 00 00 00 00 callq 7bf04 <CFG80211DRV_IoctlHandle+0xe14>
7bf04: 31 c0 xor %eax,%eax
7bf06: e9 94 f3 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bf0b: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bf12 <CFG80211DRV_IoctlHandle+0xe22>
DBGPRINT(RT_DEBUG_TRACE, ("RT_CMD_80211_KEY_WEP\n"));
7bf12: 76 16 jbe 7bf2a <CFG80211DRV_IoctlHandle+0xe3a>
7bf14: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bf1c <CFG80211DRV_IoctlHandle+0xe2c>
7bf1b: 00
7bf1c: 75 0c jne 7bf2a <CFG80211DRV_IoctlHandle+0xe3a>
7bf1e: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7bf25: e8 00 00 00 00 callq 7bf2a <CFG80211DRV_IoctlHandle+0xe3a>
7bf2a: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7bf31: 4c 89 e7 mov %r12,%rdi
return NDIS_STATUS_SUCCESS;
7bf34: e8 00 00 00 00 callq 7bf39 <CFG80211DRV_IoctlHandle+0xe49>
7bf39: e9 b1 f2 ff ff jmpq 7b1ef <CFG80211DRV_IoctlHandle+0xff>
DBGPRINT(RT_DEBUG_TRACE, ("AES\n"));
7bf3e: 41 0f b6 55 03 movzbl 0x3(%r13),%edx
7bf43: f6 c2 08 test $0x8,%dl
7bf46: 75 e2 jne 7bf2a <CFG80211DRV_IoctlHandle+0xe3a>
7bf48: f6 c2 04 test $0x4,%dl
7bf4b: 0f 85 00 02 00 00 jne 7c151 <CFG80211DRV_IoctlHandle+0x1061>
7bf51: 83 e2 02 and $0x2,%edx
7bf54: 0f 85 86 f2 ff ff jne 7b1e0 <CFG80211DRV_IoctlHandle+0xf0>
Set_EncrypType_Proc(pAd, "AES");
7bf5a: 83 f8 02 cmp $0x2,%eax
7bf5d: 0f 87 58 03 00 00 ja 7c2bb <CFG80211DRV_IoctlHandle+0x11cb>
7bf63: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7bf6a: 4c 89 e7 mov %r12,%rdi
7bf6d: e8 00 00 00 00 callq 7bf72 <CFG80211DRV_IoctlHandle+0xe82>
if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_CCMP) {
7bf72: e9 78 f2 ff ff jmpq 7b1ef <CFG80211DRV_IoctlHandle+0xff>
7bf77: a8 04 test $0x4,%al
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_TKIP) {
7bf79: 0f 84 b9 f2 ff ff je 7b238 <CFG80211DRV_IoctlHandle+0x148>
7bf7f: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7bf86 <CFG80211DRV_IoctlHandle+0xe96>
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_WEP) {
7bf86: 76 0e jbe 7bf96 <CFG80211DRV_IoctlHandle+0xea6>
7bf88: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7bf90 <CFG80211DRV_IoctlHandle+0xea0>
7bf8f: 00
DBGPRINT(RT_DEBUG_TRACE, ("NONE\n"));
7bf90: 0f 84 81 05 00 00 je 7c517 <CFG80211DRV_IoctlHandle+0x1427>
Set_EncrypType_Proc(pAd, "NONE");
7bf96: 48 8d b5 58 ff ff ff lea -0xa8(%rbp),%rsi
7bf9d: 31 d2 xor %edx,%edx
7bf9f: 4c 89 e7 mov %r12,%rdi
7bfa2: c7 85 5c ff ff ff 34 movl $0x34,-0xa4(%rbp)
7bfa9: 00 00 00
} else if (pConnInfo->GroupwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_TKIP) {
7bfac: e8 00 00 00 00 callq 7bfb1 <CFG80211DRV_IoctlHandle+0xec1>
DBGPRINT(RT_DEBUG_TRACE, ("GTK TKIP\n"));
7bfb1: e9 82 f2 ff ff jmpq 7b238 <CFG80211DRV_IoctlHandle+0x148>
7bfb6: 49 8b 75 08 mov 0x8(%r13),%rsi
7bfba: 4c 89 ea mov %r13,%rdx
7bfbd: 4c 89 e7 mov %r12,%rdi
7bfc0: e8 00 00 00 00 callq 7bfc5 <CFG80211DRV_IoctlHandle+0xed5>
7bfc5: 31 c0 xor %eax,%eax
RtmpIoctl_rt_ioctl_siwauth(pAd, &IoctlWpa, 0);
7bfc7: e9 d3 f2 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
7bfcc: c7 85 6c ff ff ff 03 movl $0x3,-0x94(%rbp)
7bfd3: 00 00 00
IoctlWpa.value = RT_CMD_STA_IOCTL_WPA_GROUP_TKIP;
7bfd6: e9 9f f8 ff ff jmpq 7b87a <CFG80211DRV_IoctlHandle+0x78a>
7bfdb: 41 80 a4 24 ad 31 00 andb $0xf7,0x31ad(%r12)
7bfe2: 00 f7
RtmpIoctl_rt_ioctl_siwauth(pAd, &IoctlWpa, 0);
7bfe4: 41 80 a4 24 ae 31 00 andb $0xf9,0x31ae(%r12)
7bfeb: 00 f9
CFG80211_RegRuleApply(pAd, pRegInfo->pWiphy, (UCHAR *)pRegInfo->Alpha2);
7bfed: 41 c6 84 24 d9 36 00 movb $0x0,0x36d9(%r12)
7bff4: 00 00
return NDIS_STATUS_SUCCESS;
7bff6: e9 55 f5 ff ff jmpq 7b550 <CFG80211DRV_IoctlHandle+0x460>
7bffb: c7 85 6c ff ff ff 04 movl $0x4,-0x94(%rbp)
7c002: 00 00 00
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_TKIP;
7c005: e9 70 f8 ff ff jmpq 7b87a <CFG80211DRV_IoctlHandle+0x78a>
7c00a: 41 80 8c 24 ad 31 00 orb $0x8,0x31ad(%r12)
7c011: 00 08
pAd->CommonCfg.RegTransmitSetting.field.BW = BW_20;
7c013: 41 80 8c 24 ae 31 00 orb $0x6,0x31ae(%r12)
7c01a: 00 06
pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_NONE;
7c01c: 41 c6 84 24 d9 36 00 movb $0x0,0x36d9(%r12)
7c023: 00 00
pAd->CommonCfg.HT_Disable = 0;
7c025: e9 26 f5 ff ff jmpq 7b550 <CFG80211DRV_IoctlHandle+0x460>
7c02a: 44 8b 15 00 00 00 00 mov 0x0(%rip),%r10d # 7c031 <CFG80211DRV_IoctlHandle+0xf41>
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_CCMP;
7c031: 45 85 d2 test %r10d,%r10d
7c034: 0f 84 63 f2 ff ff je 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
pAd->CommonCfg.RegTransmitSetting.field.BW = BW_40;
7c03a: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c041: e8 00 00 00 00 callq 7c046 <CFG80211DRV_IoctlHandle+0xf56>
pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_BELOW;
7c046: e9 52 f2 ff ff jmpq 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7c04b: 41 80 7d 01 01 cmpb $0x1,0x1(%r13)
pAd->CommonCfg.HT_Disable = 0;
7c050: 0f 84 26 02 00 00 je 7c27c <CFG80211DRV_IoctlHandle+0x118c>
7c056: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c05d <CFG80211DRV_IoctlHandle+0xf6d>
CFG80211DBG(RT_DEBUG_ERROR, ("80211> Set the channel in STA Mode\n"));
7c05d: 76 0e jbe 7c06d <CFG80211DRV_IoctlHandle+0xf7d>
7c05f: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c067 <CFG80211DRV_IoctlHandle+0xf77>
7c066: 00
7c067: 0f 84 2c 03 00 00 je 7c399 <CFG80211DRV_IoctlHandle+0x12a9>
7c06d: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c074: 4c 89 e7 mov %r12,%rdi
7c077: e8 00 00 00 00 callq 7c07c <CFG80211DRV_IoctlHandle+0xf8c>
if (pConnInfo->FlgIs8021x == TRUE) {
7c07c: e9 0f f1 ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7c081: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
DBGPRINT(RT_DEBUG_TRACE, ("WPA2PSK\n"));
7c088: 4c 89 e7 mov %r12,%rdi
7c08b: e8 00 00 00 00 callq 7c090 <CFG80211DRV_IoctlHandle+0xfa0>
7c090: 41 8b 55 10 mov 0x10(%r13),%edx
7c094: 49 8b 75 08 mov 0x8(%r13),%rsi
7c098: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
Set_AuthMode_Proc(pAd, "WPA2PSK");
7c09f: e8 00 00 00 00 callq 7c0a4 <CFG80211DRV_IoctlHandle+0xfb4>
7c0a4: 41 0f b6 45 14 movzbl 0x14(%r13),%eax
7c0a9: 41 88 84 24 ec 20 00 mov %al,0x20ec(%r12)
7c0b0: 00
Set_EncrypType_Proc(pAd, "WEP");
7c0b1: 41 8b 55 10 mov 0x10(%r13),%edx
7c0b5: 83 fa 31 cmp $0x31,%edx
7c0b8: 0f 87 df f1 ff ff ja 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7c0be: 83 fa 08 cmp $0x8,%edx
hex_dump("KeyBuf=", (UINT8 )pConnInfo->pKey, pConnInfo->KeyLen);
7c0c1: 4c 8d 75 a6 lea -0x5a(%rbp),%r14
7c0c5: 49 8b 7d 08 mov 0x8(%r13),%rdi
7c0c9: 0f 83 36 02 00 00 jae 7c305 <CFG80211DRV_IoctlHandle+0x1215>
7c0cf: f6 c2 04 test $0x4,%dl
7c0d2: 0f 85 92 02 00 00 jne 7c36a <CFG80211DRV_IoctlHandle+0x127a>
pAd->StaCfg.wdev.DefaultKeyId = pConnInfo->KeyIdx; /
base 0 */
7c0d8: 31 c9 xor %ecx,%ecx
7c0da: 85 d2 test %edx,%edx
7c0dc: 74 11 je 7c0ef <CFG80211DRV_IoctlHandle+0xfff>
7c0de: 0f b6 0f movzbl (%rdi),%ecx
if (pConnInfo->KeyLen >= sizeof(KeyBuf))
7c0e1: f6 c2 02 test $0x2,%dl
7c0e4: 41 88 0e mov %cl,(%r14)
7c0e7: 89 d1 mov %edx,%ecx
7c0e9: 0f 85 cb 04 00 00 jne 7c5ba <CFG80211DRV_IoctlHandle+0x14ca>
memcpy(KeyBuf, pConnInfo->pKey, pConnInfo->KeyLen);
7c0ef: c6 44 0d a6 00 movb $0x0,-0x5a(%rbp,%rcx,1)
7c0f4: 8b 0d 00 00 00 00 mov 0x0(%rip),%ecx # 7c0fa <CFG80211DRV_IoctlHandle+0x100a>
7c0fa: 85 c9 test %ecx,%ecx
7c0fc: 0f 85 fd 02 00 00 jne 7c3ff <CFG80211DRV_IoctlHandle+0x130f>
7c102: 41 0f b6 4d 14 movzbl 0x14(%r13),%ecx
7c107: 4c 89 f6 mov %r14,%rsi
7c10a: 4c 89 e7 mov %r12,%rdi
7c10d: e8 00 00 00 00 callq 7c112 <CFG80211DRV_IoctlHandle+0x1022>
7c112: e9 50 f1 ff ff jmpq 7b267 <CFG80211DRV_IoctlHandle+0x177>
7c117: 41 8b b4 24 dc 20 00 mov 0x20dc(%r12),%esi
7c11e: 00
KeyBuf[pConnInfo->KeyLen] = 0x00;
7c11f: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
CFG80211DBG(RT_DEBUG_ERROR,
7c126: e8 00 00 00 00 callq 7c12b <CFG80211DRV_IoctlHandle+0x103b>
7c12b: 41 0f b6 55 03 movzbl 0x3(%r13),%edx
7c130: f6 c2 08 test $0x8,%dl
Set_Wep_Key_Proc(pAd, (PSTRING)KeyBuf, (int)pConnInfo->KeyLen, (int)pConnInfo->KeyIdx);
7c133: 0f 85 d2 fd ff ff jne 7bf0b <CFG80211DRV_IoctlHandle+0xe1b>
7c139: f6 c2 04 test $0x4,%dl
7c13c: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 7c142 <CFG80211DRV_IoctlHandle+0x1052>
7c142: 0f 84 e0 03 00 00 je 7c528 <CFG80211DRV_IoctlHandle+0x1438>
CFG80211DBG(RT_DEBUG_TRACE,
7c148: 83 f8 02 cmp $0x2,%eax
7c14b: 0f 87 fb 00 00 00 ja 7c24c <CFG80211DRV_IoctlHandle+0x115c>
7c151: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c158: 4c 89 e7 mov %r12,%rdi
if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_CCMP) {
7c15b: e8 00 00 00 00 callq 7c160 <CFG80211DRV_IoctlHandle+0x1070>
7c160: e9 8a f0 ff ff jmpq 7b1ef <CFG80211DRV_IoctlHandle+0xff>
7c165: 41 0f b6 84 24 ae 31 movzbl 0x31ae(%r12),%eax
7c16c: 00 00
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_TKIP) {
7c16e: 41 80 8c 24 ad 31 00 orb $0x8,0x31ad(%r12)
7c175: 00 08
7c177: 41 c6 84 24 d9 36 00 movb $0x0,0x36d9(%r12)
7c17e: 00 00
DBGPRINT(RT_DEBUG_TRACE, ("TKIP\n"));
7c180: 83 e0 f9 and $0xfffffff9,%eax
Set_EncrypType_Proc(pAd, "TKIP");
7c183: 83 c8 02 or $0x2,%eax
7c186: 41 88 84 24 ae 31 00 mov %al,0x31ae(%r12)
7c18d: 00
7c18e: e9 bd f3 ff ff jmpq 7b550 <CFG80211DRV_IoctlHandle+0x460>
7c193: c7 85 6c ff ff ff 03 movl $0x3,-0x94(%rbp)
7c19a: 00 00 00
pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_ABOVE;
7c19d: e9 64 fc ff ff jmpq 7be06 <CFG80211DRV_IoctlHandle+0xd16>
pAd->CommonCfg.RegTransmitSetting.field.BW = BW_40;
7c1a2: c7 85 6c ff ff ff 03 movl $0x3,-0x94(%rbp)
7c1a9: 00 00 00
pAd->CommonCfg.HT_Disable = 0;
7c1ac: e9 fc f6 ff ff jmpq 7b8ad <CFG80211DRV_IoctlHandle+0x7bd>
pAd->CommonCfg.RegTransmitSetting.field.EXTCHA = EXTCHA_ABOVE;
7c1b1: 41 80 7d 01 01 cmpb $0x1,0x1(%r13)
7c1b6: 0f 84 1e 01 00 00 je 7c2da <CFG80211DRV_IoctlHandle+0x11ea>
7c1bc: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c1c3 <CFG80211DRV_IoctlHandle+0x10d3>
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_TKIP;
7c1c3: 76 0e jbe 7c1d3 <CFG80211DRV_IoctlHandle+0x10e3>
7c1c5: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c1cd <CFG80211DRV_IoctlHandle+0x10dd>
7c1cc: 00
7c1cd: 0f 84 d7 01 00 00 je 7c3aa <CFG80211DRV_IoctlHandle+0x12ba>
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_TKIP;
7c1d3: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c1da: 4c 89 e7 mov %r12,%rdi
7c1dd: e8 00 00 00 00 callq 7c1e2 <CFG80211DRV_IoctlHandle+0x10f2>
if (pConnInfo->FlgIs8021x == TRUE) {
7c1e2: e9 a9 ef ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7c1e7: c7 85 6c ff ff ff 04 movl $0x4,-0x94(%rbp)
7c1ee: 00 00 00
DBGPRINT(RT_DEBUG_TRACE, ("WPAPSK\n"));
7c1f1: e9 b7 f6 ff ff jmpq 7b8ad <CFG80211DRV_IoctlHandle+0x7bd>
7c1f6: c7 85 6c ff ff ff 04 movl $0x4,-0x94(%rbp)
7c1fd: 00 00 00
7c200: e9 01 fc ff ff jmpq 7be06 <CFG80211DRV_IoctlHandle+0xd16>
Set_AuthMode_Proc(pAd, "WPAPSK");
7c205: 31 d2 xor %edx,%edx
7c207: 31 f6 xor %esi,%esi
7c209: 4c 89 e7 mov %r12,%rdi
7c20c: e8 00 00 00 00 callq 7c211 <CFG80211DRV_IoctlHandle+0x1121>
7c211: 4c 89 e7 mov %r12,%rdi
7c214: e8 00 00 00 00 callq 7c219 <CFG80211DRV_IoctlHandle+0x1129>
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_CCMP;
7c219: 4c 89 e7 mov %r12,%rdi
7c21c: e8 00 00 00 00 callq 7c221 <CFG80211DRV_IoctlHandle+0x1131>
7c221: 49 8d b4 24 f8 30 00 lea 0x30f8(%r12),%rsi
7c228: 00
IoctlSec.Alg = RT_CMD_STA_IOCTL_SECURITY_ALG_CCMP;
7c229: 4c 89 e7 mov %r12,%rdi
7c22c: e8 00 00 00 00 callq 7c231 <CFG80211DRV_IoctlHandle+0x1141>
7c231: 31 c0 xor %eax,%eax
7c233: e9 67 f0 ff ff jmpq 7b29f <CFG80211DRV_IoctlHandle+0x1af>
MlmeUpdateTxRates(pAd, FALSE, 0);
7c238: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c23f: 4c 89 e7 mov %r12,%rdi
MakeIbssBeacon(pAd);
7c242: e8 00 00 00 00 callq 7c247 <CFG80211DRV_IoctlHandle+0x1157>
7c247: e9 44 ef ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
AsicEnableIbssSync(pAd);
7c24c: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c254 <CFG80211DRV_IoctlHandle+0x1164>
7c253: 00
Set_SSID_Proc(pAd, (PSTRING)pAd->CommonCfg.Ssid);
7c254: 0f 85 f7 fe ff ff jne 7c151 <CFG80211DRV_IoctlHandle+0x1061>
7c25a: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
return NDIS_STATUS_SUCCESS;
7c261: e8 00 00 00 00 callq 7c266 <CFG80211DRV_IoctlHandle+0x1176>
7c266: e9 e6 fe ff ff jmpq 7c151 <CFG80211DRV_IoctlHandle+0x1061>
Set_AuthMode_Proc(pAd, "SHARED");
7c26b: 8b 0a mov (%rdx),%ecx
7c26d: 89 0b mov %ecx,(%rbx)
7c26f: 8b 54 02 fc mov -0x4(%rdx,%rax,1),%edx
7c273: 89 54 03 fc mov %edx,-0x4(%rbx,%rax,1)
7c277: e9 2c f2 ff ff jmpq 7b4a8 <CFG80211DRV_IoctlHandle+0x3b8>
DBGPRINT(RT_DEBUG_TRACE, ("TKIP\n"));
7c27c: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c283 <CFG80211DRV_IoctlHandle+0x1193>
7c283: 76 0e jbe 7c293 <CFG80211DRV_IoctlHandle+0x11a3>
7c285: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c28d <CFG80211DRV_IoctlHandle+0x119d>
7c28c: 00
7c28d: 0f 84 38 02 00 00 je 7c4cb <CFG80211DRV_IoctlHandle+0x13db>
7c293: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c29a: 4c 89 e7 mov %r12,%rdi
memcpy(SSID, pConnInfo->pSsid, SSIDLen);
7c29d: e8 00 00 00 00 callq 7c2a2 <CFG80211DRV_IoctlHandle+0x11b2>
7c2a2: e9 e9 ee ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7c2a7: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
DBGPRINT(RT_DEBUG_TRACE, ("WPA2\n"));
7c2ae: 4c 89 e7 mov %r12,%rdi
7c2b1: e8 00 00 00 00 callq 7c2b6 <CFG80211DRV_IoctlHandle+0x11c6>
7c2b6: e9 d5 ee ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7c2bb: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c2c3 <CFG80211DRV_IoctlHandle+0x11d3>
7c2c2: 00
Set_AuthMode_Proc(pAd, "WPA2");
7c2c3: 0f 85 9a fc ff ff jne 7bf63 <CFG80211DRV_IoctlHandle+0xe73>
7c2c9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c2d0: e8 00 00 00 00 callq 7c2d5 <CFG80211DRV_IoctlHandle+0x11e5>
7c2d5: e9 89 fc ff ff jmpq 7bf63 <CFG80211DRV_IoctlHandle+0xe73>
Set_AuthMode_Proc(pAd, "WEPAUTO");
7c2da: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c2e1 <CFG80211DRV_IoctlHandle+0x11f1>
7c2e1: 76 0e jbe 7c2f1 <CFG80211DRV_IoctlHandle+0x1201>
7c2e3: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c2eb <CFG80211DRV_IoctlHandle+0x11fb>
7c2ea: 00
DBGPRINT(RT_DEBUG_TRACE, ("NONE\n"));
7c2eb: 0f 84 b8 02 00 00 je 7c5a9 <CFG80211DRV_IoctlHandle+0x14b9>
7c2f1: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c2f8: 4c 89 e7 mov %r12,%rdi
7c2fb: e8 00 00 00 00 callq 7c300 <CFG80211DRV_IoctlHandle+0x1210>
7c300: e9 8b ee ff ff jmpq 7b190 <CFG80211DRV_IoctlHandle+0xa0>
7c305: 48 8b 0f mov (%rdi),%rcx
7c308: 4d 8d 4e 08 lea 0x8(%r14),%r9
DBGPRINT(RT_DEBUG_TRACE, ("WPA\n"));
7c30c: 49 83 e1 f8 and $0xfffffffffffffff8,%r9
7c310: 48 89 4d a6 mov %rcx,-0x5a(%rbp)
7c314: 89 d1 mov %edx,%ecx
7c316: 48 8b 74 0f f8 mov -0x8(%rdi,%rcx,1),%rsi
7c31b: 49 89 74 0e f8 mov %rsi,-0x8(%r14,%rcx,1)
7c320: 4c 89 f6 mov %r14,%rsi
Set_AuthMode_Proc(pAd, "WPA");
7c323: 4c 29 ce sub %r9,%rsi
7c326: 48 29 f7 sub %rsi,%rdi
7c329: 01 d6 add %edx,%esi
7c32b: 83 e6 f8 and $0xfffffff8,%esi
7c32e: 83 fe 08 cmp $0x8,%esi
7c331: 0f 82 b8 fd ff ff jb 7c0ef <CFG80211DRV_IoctlHandle+0xfff>
memcpy(KeyBuf, pConnInfo->pKey, pConnInfo->KeyLen);
7c337: 83 e6 f8 and $0xfffffff8,%esi
7c33a: 45 31 c0 xor %r8d,%r8d
7c33d: 45 89 c2 mov %r8d,%r10d
7c340: 41 83 c0 08 add $0x8,%r8d
7c344: 4e 8b 1c 17 mov (%rdi,%r10,1),%r11
7c348: 41 39 f0 cmp %esi,%r8d
7c34b: 4f 89 1c 11 mov %r11,(%r9,%r10,1)
7c34f: 72 ec jb 7c33d <CFG80211DRV_IoctlHandle+0x124d>
7c351: e9 99 fd ff ff jmpq 7c0ef <CFG80211DRV_IoctlHandle+0xfff>
7c356: 0f b7 54 02 fe movzwl -0x2(%rdx,%rax,1),%edx
7c35b: 66 89 54 03 fe mov %dx,-0x2(%rbx,%rax,1)
7c360: e9 43 f1 ff ff jmpq 7b4a8 <CFG80211DRV_IoctlHandle+0x3b8>
7c365: e8 00 00 00 00 callq 7c36a <CFG80211DRV_IoctlHandle+0x127a>
7c36a: 8b 0f mov (%rdi),%ecx
7c36c: 41 89 0e mov %ecx,(%r14)
7c36f: 89 d1 mov %edx,%ecx
7c371: 8b 74 0f fc mov -0x4(%rdi,%rcx,1),%esi
7c375: 41 89 74 0e fc mov %esi,-0x4(%r14,%rcx,1)
7c37a: e9 70 fd ff ff jmpq 7c0ef <CFG80211DRV_IoctlHandle+0xfff>
7c37f: 41 0f b6 b4 24 d9 36 movzbl 0x36d9(%r12),%esi
7c386: 00 00
memcpy(SSID, pConnInfo->pSsid, SSIDLen);
7c388: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c38f: e8 00 00 00 00 callq 7c394 <CFG80211DRV_IoctlHandle+0x12a4>
7c394: e9 ce f1 ff ff jmpq 7b567 <CFG80211DRV_IoctlHandle+0x477>
}
7c399: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
memcpy(KeyBuf, pConnInfo->pKey, pConnInfo->KeyLen);
7c3a0: e8 00 00 00 00 callq 7c3a5 <CFG80211DRV_IoctlHandle+0x12b5>
7c3a5: e9 c3 fc ff ff jmpq 7c06d <CFG80211DRV_IoctlHandle+0xf7d>
7c3aa: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
CFG80211DBG(RT_DEBUG_TRACE, ("80211> HT Disable = %d\n",
7c3b1: e8 00 00 00 00 callq 7c3b6 <CFG80211DRV_IoctlHandle+0x12c6>
7c3b6: e9 18 fe ff ff jmpq 7c1d3 <CFG80211DRV_IoctlHandle+0x10e3>
7c3bb: 41 8b b4 24 e0 20 00 mov 0x20e0(%r12),%esi
7c3c2: 00
7c3c3: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
DBGPRINT(RT_DEBUG_TRACE, ("WPA2PSK\n"));
7c3ca: e8 00 00 00 00 callq 7c3cf <CFG80211DRV_IoctlHandle+0x12df>
7c3cf: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c3d6 <CFG80211DRV_IoctlHandle+0x12e6>
7c3d6: 0f 86 73 ee ff ff jbe 7b24f <CFG80211DRV_IoctlHandle+0x15f>
DBGPRINT(RT_DEBUG_TRACE, ("WPAPSK\n"));
7c3dc: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c3e4 <CFG80211DRV_IoctlHandle+0x12f4>
7c3e3: 00
7c3e4: 0f 85 65 ee ff ff jne 7b24f <CFG80211DRV_IoctlHandle+0x15f>
7c3ea: 49 8b 75 08 mov 0x8(%r13),%rsi
CFG80211DBG(RT_DEBUG_TRACE, ("80211> EncrypType = %d\n", pAd->StaCfg.wdev.WepStatus));
7c3ee: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c3f5: e8 00 00 00 00 callq 7c3fa <CFG80211DRV_IoctlHandle+0x130a>
7c3fa: e9 50 ee ff ff jmpq 7b24f <CFG80211DRV_IoctlHandle+0x15f>
CFG80211DBG(RT_DEBUG_TRACE, ("80211> Key = %s\n", pConnInfo->pKey));
7c3ff: 0f b6 f0 movzbl %al,%esi
7c402: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c409: e8 00 00 00 00 callq 7c40e <CFG80211DRV_IoctlHandle+0x131e>
7c40e: 41 8b 55 10 mov 0x10(%r13),%edx
7c412: e9 eb fc ff ff jmpq 7c102 <CFG80211DRV_IoctlHandle+0x1012>
7c417: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c41e: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c425: e8 00 00 00 00 callq 7c42a <CFG80211DRV_IoctlHandle+0x133a>
7c42a: 41 8b 55 04 mov 0x4(%r13),%edx
7c42e: 83 fa ff cmp $0xffffffff,%edx
CFG80211DBG(RT_DEBUG_ERROR,
7c431: 89 d0 mov %edx,%eax
7c433: 0f 84 11 f7 ff ff je 7bb4a <CFG80211DRV_IoctlHandle+0xa5a>
7c439: 83 3d 00 00 00 00 02 cmpl $0x2,0x0(%rip) # 7c440 <CFG80211DRV_IoctlHandle+0x1350>
7c440: 0f 86 e6 f6 ff ff jbe 7bb2c <CFG80211DRV_IoctlHandle+0xa3c>
7c446: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c44e <CFG80211DRV_IoctlHandle+0x135e>
7c44d: 00
CFG80211DBG(RT_DEBUG_TRACE, ("%s\n", FUNCTION));
7c44e: 0f 85 d6 f6 ff ff jne 7bb2a <CFG80211DRV_IoctlHandle+0xa3a>
7c454: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
if (pBssInfo->use_short_preamble != -1) {
7c45b: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c462: e8 00 00 00 00 callq 7c467 <CFG80211DRV_IoctlHandle+0x1377>
7c467: 41 8b 55 04 mov 0x4(%r13),%edx
CFG80211DBG(RT_DEBUG_TRACE,
7c46b: e9 bc f6 ff ff jmpq 7bb2c <CFG80211DRV_IoctlHandle+0xa3c>
7c470: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c477: e8 00 00 00 00 callq 7c47c <CFG80211DRV_IoctlHandle+0x138c>
7c47c: e9 a6 ee ff ff jmpq 7b327 <CFG80211DRV_IoctlHandle+0x237>
7c481: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c488: e8 00 00 00 00 callq 7c48d <CFG80211DRV_IoctlHandle+0x139d>
7c48d: e9 bf f9 ff ff jmpq 7be51 <CFG80211DRV_IoctlHandle+0xd61>
7c492: 8b b5 6c ff ff ff mov -0x94(%rbp),%esi
7c498: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c49f: e8 00 00 00 00 callq 7c4a4 <CFG80211DRV_IoctlHandle+0x13b4>
DBGPRINT(RT_DEBUG_TRACE,
7c4a4: e9 17 f4 ff ff jmpq 7b8c0 <CFG80211DRV_IoctlHandle+0x7d0>
7c4a9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c4b0: e8 00 00 00 00 callq 7c4b5 <CFG80211DRV_IoctlHandle+0x13c5>
DBGPRINT(RT_DEBUG_TRACE, ("CFG80211: No Connection\n"));
7c4b5: e9 10 f0 ff ff jmpq 7b4ca <CFG80211DRV_IoctlHandle+0x3da>
7c4ba: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c4c1: e8 00 00 00 00 callq 7c4c6 <CFG80211DRV_IoctlHandle+0x13d6>
DBGPRINT(RT_DEBUG_TRACE, ("Install GTK: %d\n", IoctlSec.Alg));
7c4c6: e9 15 ed ff ff jmpq 7b1e0 <CFG80211DRV_IoctlHandle+0xf0>
7c4cb: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c4d2: e8 00 00 00 00 callq 7c4d7 <CFG80211DRV_IoctlHandle+0x13e7>
7c4d7: e9 b7 fd ff ff jmpq 7c293 <CFG80211DRV_IoctlHandle+0x11a3>
DBGPRINT(RT_DEBUG_TRACE, ("WPS Connection onGoing.....\n"));
7c4dc: 31 c0 xor %eax,%eax
7c4de: 48 89 df mov %rbx,%rdi
7c4e1: 48 83 c9 ff or $0xffffffffffffffff,%rcx
7c4e5: f2 ae repnz scas %es:(%rdi),%al
7c4e7: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
DBGPRINT(RT_DEBUG_TRACE, ("WEP\n"));
7c4ee: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c4f5: 48 89 c8 mov %rcx,%rax
7c4f8: 0f b6 ca movzbl %dl,%ecx
DBGPRINT(RT_DEBUG_TRACE, ("WPA2\n"));
7c4fb: 41 0f b6 55 33 movzbl 0x33(%r13),%edx
7c500: 48 f7 d0 not %rax
7c503: 4c 8d 40 ff lea -0x1(%rax),%r8
7c507: e8 00 00 00 00 callq 7c50c <CFG80211DRV_IoctlHandle+0x141c>
DBGPRINT(RT_DEBUG_TRACE, ("%s ==> %d, %d, %zx...\n",
7c50c: 8b 05 00 00 00 00 mov 0x0(%rip),%eax # 7c512 <CFG80211DRV_IoctlHandle+0x1422>
7c512: e9 2b f3 ff ff jmpq 7b842 <CFG80211DRV_IoctlHandle+0x752>
7c517: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c51e: e8 00 00 00 00 callq 7c523 <CFG80211DRV_IoctlHandle+0x1433>
7c523: e9 6e fa ff ff jmpq 7bf96 <CFG80211DRV_IoctlHandle+0xea6>
7c528: 80 e2 02 and $0x2,%dl
7c52b: 0f 84 29 fa ff ff je 7bf5a <CFG80211DRV_IoctlHandle+0xe6a>
7c531: e9 97 ec ff ff jmpq 7b1cd <CFG80211DRV_IoctlHandle+0xdd>
7c536: 41 0f b6 8c 24 ae 31 movzbl 0x31ae(%r12),%ecx
7c53d: 00 00
7c53f: 41 0f b6 94 24 ad 31 movzbl 0x31ad(%r12),%edx
7c546: 00 00
DBGPRINT(RT_DEBUG_TRACE, ("GTK TKIP\n"));
7c548: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c54f: 41 0f b6 b4 24 49 31 movzbl 0x3149(%r12),%esi
7c556: 00 00
} else if (pConnInfo->PairwiseEncrypType & RT_CMD_80211_CONN_ENCRYPT_WEP) {
7c558: d0 e9 shr %cl
7c55a: c0 ea 03 shr $0x3,%dl
7c55d: 83 e1 03 and $0x3,%ecx
7c560: 83 e2 01 and $0x1,%edx
7c563: e8 00 00 00 00 callq 7c568 <CFG80211DRV_IoctlHandle+0x1478>
CFG80211DBG(RT_DEBUG_TRACE, ("80211> New CH = %d, New BW = %d with Ext[%d]\n",
7c568: e9 8b f0 ff ff jmpq 7b5f8 <CFG80211DRV_IoctlHandle+0x508>
7c56d: 44 89 f6 mov %r14d,%esi
7c570: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c577: e8 00 00 00 00 callq 7c57c <CFG80211DRV_IoctlHandle+0x148c>
7c57c: e9 87 f2 ff ff jmpq 7b808 <CFG80211DRV_IoctlHandle+0x718>
7c581: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c588: e8 00 00 00 00 callq 7c58d <CFG80211DRV_IoctlHandle+0x149d>
7c58d: e9 8b ec ff ff jmpq 7b21d <CFG80211DRV_IoctlHandle+0x12d>
7c592: 8b b5 6c ff ff ff mov -0x94(%rbp),%esi
7c598: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
DBGPRINT(RT_DEBUG_TRACE, ("Set Sta Default Key: %d\n", Data));
7c59f: e8 00 00 00 00 callq 7c5a4 <CFG80211DRV_IoctlHandle+0x14b4>
7c5a4: e9 70 f8 ff ff jmpq 7be19 <CFG80211DRV_IoctlHandle+0xd29>
7c5a9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c5b0: e8 00 00 00 00 callq 7c5b5 <CFG80211DRV_IoctlHandle+0x14c5>
DBGPRINT(RT_DEBUG_TRACE, ("GTK AES\n"));
7c5b5: e9 37 fd ff ff jmpq 7c2f1 <CFG80211DRV_IoctlHandle+0x1201>
7c5ba: 0f b7 74 0f fe movzwl -0x2(%rdi,%rcx,1),%esi
7c5bf: 66 41 89 74 0e fe mov %si,-0x2(%r14,%rcx,1)
DBGPRINT(RT_DEBUG_TRACE, ("Install PTK: %d\n", IoctlSec.Alg));
7c5c5: e9 25 fb ff ff jmpq 7c0ef <CFG80211DRV_IoctlHandle+0xfff>
7c5ca: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c5d1: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
7c5d8: e8 00 00 00 00 callq 7c5dd <CFG80211DRV_IoctlHandle+0x14ed>
DBGPRINT(RT_DEBUG_TRACE, ("WPA\n"));
7c5dd: e9 92 f0 ff ff jmpq 7b674 <CFG80211DRV_IoctlHandle+0x584>
7c5e2: 48 c7 c6 00 00 00 00 mov $0x0,%rsi
7c5e9: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
memcpy(KeyBuf, pConnInfo->pKey, pConnInfo->KeyLen);
7c5f0: e8 00 00 00 00 callq 7c5f5 <CFG80211DRV_IoctlHandle+0x1505>
7c5f5: 41 80 bc 24 51 a3 13 cmpb $0x1,0x13a351(%r12)
7c5fc: 00 01
DBGPRINT(RT_DEBUG_TRACE, (" %s\n", FUNCTION));
7c5fe: 0f 85 99 ec ff ff jne 7b29d <CFG80211DRV_IoctlHandle+0x1ad>
7c604: 83 3d 00 00 00 00 01 cmpl $0x1,0x0(%rip) # 7c60b <CFG80211DRV_IoctlHandle+0x151b>
7c60b: 0f 86 9a f1 ff ff jbe 7b7ab <CFG80211DRV_IoctlHandle+0x6bb>
7c611: 48 83 3d 00 00 00 00 cmpq $0x0,0x0(%rip) # 7c619 <CFG80211DRV_IoctlHandle+0x1529>
7c618: 00
DBGPRINT(RT_DEBUG_ERROR,
7c619: 0f 85 8c f1 ff ff jne 7b7ab <CFG80211DRV_IoctlHandle+0x6bb>
7c61f: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
if (pAd->cfg80211_ctrl.FlgCfg80211Scanning == TRUE) {
7c626: e8 00 00 00 00 callq 7c62b <CFG80211DRV_IoctlHandle+0x153b>
7c62b: e9 7b f1 ff ff jmpq 7b7ab <CFG80211DRV_IoctlHandle+0x6bb>

Constant disconnecting

I am running on Arch with the Linux-ck 4.7.1 kernel, and my Wi-Fi is constantly disconnecting, with a popup asking for the password (but it's already filled in, I just have to click 'connect') See here if that's not clear

I'm not sure what to put here to help, but it seems to only happen when I'm using a decent amount of bandwidth (eg. watching YouTube or Twitch).

Anyone else having this issue?

Make - missing makefile in build folder

Hello,
I could do with some guidance if you wouldn't mind please. I am stuck with not being able to "make". I have installed headers and just checked my build folder but there is no makefile file.

Current errors:

dan@PI:$ cd Netgear-A6210
dan@PI:/Netgear-A6210$ make
export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/dan/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.4.41-v7+/build DBGFLAGS=-DDBG SUBDIRS=/home/dan/Netgear-A6210/os/linux modules
make[1]: Entering directory '/lib/modules/4.4.41-v7+/build'
make[1]: *** No rule to make target 'modules'. Stop.
make[1]: Leaving directory '/lib/modules/4.4.41-v7+/build'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2
dan@PI:~/Netgear-A6210$

Many thanks in advance

Compilation error

Hi,

I try to compile this on Debian 7.9. ( 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64 GNU/Linux). I have this error. Can you help me ?

export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/drivers/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/3.2.0-4-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/drivers/Netgear-A6210/os/linux modules
make[1]: entrant dans le répertoire « /usr/src/linux-headers-3.2.0-4-amd64 »
CC [M] /root/drivers/Netgear-A6210/os/linux/../../sta/assoc.o
In file included from /root/drivers/Netgear-A6210/include/rtmp_os.h:30:0,
from /root/drivers/Netgear-A6210/include/rtmp_comm.h:64,
from /root/drivers/Netgear-A6210/include/rt_config.h:34,
from /root/drivers/Netgear-A6210/os/linux/../../sta/assoc.c:28:
/root/drivers/Netgear-A6210/include/os/rt_linux.h:232:2: error: unknown type name âkuid_tâ
/root/drivers/Netgear-A6210/include/os/rt_linux.h:233:2: error: unknown type name âkgid_tâ
make[4]: *** [/root/drivers/Netgear-A6210/os/linux/../../sta/assoc.o] Erreur 1
make[3]: *** [module/root/drivers/Netgear-A6210/os/linux] Erreur 2
make[2]: *** [sub-make] Erreur 2
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /usr/src/linux-headers-3.2.0-4-amd64 »
make: *** [debug] Erreur 2

Thanks for your answer

monitor mode support

I have built and installed the driver onto fedora 20 ( 3.19.8-100.fc20.x86_64) and ferdora 24 (4.8.6-201.fc24.x86_64) machines. I did not change any make or config files.

I can not successfully capture packets using wireshark after setting the wlan interface into monitor mode.

I appear to succesfully use iwconfig to set mode and channel
iwconfig wlan0 mode monitor
iwconfig wlan0 channel 1

iwconfig out gives

wlan0 Ralink STA ESSID:"" Nickname:"mt7612u_sta"
Mode:Monitor Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate:1 Mb/s
RTS thr:off Fragment thr:off
Link Quality=10/100 Signal level:0 dBm Noise level:0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

However , "iw dev" gives me

phy#1
Interface wlan0
ifindex 6
wdev 0x100000001
addr b0:7f:b9:4d:d5:27
type managed

i.e the hardware device is still in "managed" mode

when I try to use "iw" I either get "device or resource busy (-16) or

e.g when trying to add an interface of type monitor
iw phy phy1 interface add mon0 type monitor

i get command not supported errors (-95)

looking at output from "iw phy phy1 info"

    Supported interface modes:
             * IBSS
             * managed
             * AP

and

software interface modes (can always be added): is empty

i.e no "monitor" mode support comparing to an interface I can successfully sniff with
Supported interface modes:
* IBSS
* managed
* AP
* AP/VLAN
* monitor
* P2P-client
* P2P-GO
* P2P-device

   software interface modes (can always be added):
             * AP/VLAN
             * monitor

So, do I need to modify some config somewhere to enable monitor mode or am i just out of luck?

Any way to keep the driver persistent with bootup?

Still relatively new to linux, just curious if there's a way I can prevent having to run through the process of reinstalling the driver every time I boot to get my Netgear AC1200 to work each time.

I typically have to run these commands in this order so that Ubuntu can see my wifi adapter, and therefore be able to connect to any wifi network:

$ make
$ sudo make install
$ sudo modprobe mt7662u_sta
$ sudo service network-manager restart

Using Ubuntu 16.04

kernel 4.4.8 problem

I can compile the driver and a wlan0 device is created when I connect an AC1200 device but it disconnects frequently from the network. I am running kernel 4.4.8 on Archlinux

WNDA3100v3 - Wireless Won't Connect

First, let me tell you, THANK YOU! I am SO very glad that someone is working on a driver for this device.

Here's what I did:
1. Downloaded the archive from github
2. Extracted the archive
3. Opened a terminal and went into the directory
4. Ran the make command
5. Ran sudo make install
6. Ran modprobe mt7662u_sta (the driver it created)

Then, I looked, and poof! The network manager started receiving the signals for the wifi networks and displaying the networks. I tried connecting to my network, but it failed. I installed wicd. And after a whole minute of trying to authenticate, it said I had a bad password. I was using WPA2 - the encryption I normally use with that router. I tried the password multiple times, and looked at it (showing it in plain text), and it was my password!

I am running Ubuntu 14.04.4 x86_64 (64bit, amd64, whatever).
I am running the Linux Kernel 4.2.0.34.27 (Wily) from the main repositories.
I am using a Netgear WNDA3100v3 (as displayed in the title).

Hope I can get some help with this, and thanks!

Make errors on debian

Getting some errors while trying to run make and make install on debian(kali)

    root@kali:~/Netgear-A6210# make
    export DBGFLAGS

    *** Building driver with debug messages ***

    cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile
    make -C /lib/modules/4.3.0-kali1-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules
    make[1]: *** /lib/modules/4.3.0-kali1-amd64/build: No such file or directory.  Stop.
    Makefile:59: recipe for target 'debug' failed
    make: *** [debug] Error 2

and

    root@kali:~/Netgear-A6210# sudo make install
    make -C /root/Netgear-A6210/os/linux -f Makefile.6 install
    make[1]: Entering directory '/root/Netgear-A6210/os/linux'
    rm -rf /etc/Wireless/RT2870STA
    mkdir -pv /etc/Wireless/RT2870STA
    mkdir: created directory ‘/etc/Wireless’
    mkdir: created directory ‘/etc/Wireless/RT2870STA’
    cp /root/Netgear-A6210/conf/RT2870STA.dat /etc/Wireless/RT2870STA/.
    install -d /lib/modules/4.3.0-kali1-amd64/kernel/drivers/net/wireless/
    install -m 644 -c mt7662u_sta.ko /lib/modules/4.3.0-kali1-amd64/kernel/drivers/net/wireless/
    install: cannot stat ‘mt7662u_sta.ko’: No such file or directory
    Makefile.6:721: recipe for target 'install' failed
    make[1]: *** [install] Error 1
    make[1]: Leaving directory '/root/Netgear-A6210/os/linux'
    Makefile:76: recipe for target 'install' failed
    make: *** [install] Error 2

Thanks! Currently running an apt-get upgrade. Hopefully this'll fix it.

Success stories!

First of all, I must say an emphatic thank you to @jurobystricky

A little Googling trying to find a driver for my new netgear N600 dongle brought me to this page, so I decided to give it a try. Driver compiled easily and quickly, a quick little insmod followed by ip addr show and bam, there's wlan0. I click on the network icon in my panel, select my router, and it connects. It fumbles around a little at the beginning, but has been pretty stable since. So to report on my configuration that works:

Gentoo Linux, kernel 3.18.9-gentoo, with a NETGEAR N600 WNDA3100 dongle

Thanks again for making my wireless adapter not useless!

Ubuntu 16.04.1 Cannot get driver to work properly

I cannot seem to get my new A6210 Netgear adapter to work with this driver.
The driver seems to make/sudo make install fine as well as modprobe fine
but the adapter shows up as "device not managed" if at all. I tried restarting
the network-manager service and it did not help. I did notice that there were
some segfaults happening.

I have included a cut/paste of my terminal session.

Any help would be appreciated and Thanks

Netgear-A6210.txt

Kali Linux 2016.2 using kali rolling repository. 'PIC MODE NOT SUPPORTED'

Backstory:
Recently got kali and purchased a Netgear A6210 so i could use airmonitoring and do some wireless bits and bobs. Saw your driver and thought 'bingo', as previous attempts to get the adapter working had failed.

Issue:
first 2 command in the read me work fine.
command 3: '$make'

returns an error, the error message is as follows
`
export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /root/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.8.0-kali1-amd64/build DBGFLAGS=-DDBG SUBDIRS=/root/Netgear-A6210/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
CC [M] /root/Netgear-A6210/os/linux/../../sta/assoc.o
/root/Netgear-A6210/os/linux/../../sta/assoc.c:1:0: error: code model kernel does not support PIC mode
/

/usr/src/linux-headers-4.8.0-kali1-common/scripts/Makefile.build:294: recipe for target '/root/Netgear-A6210/os/linux/../../sta/assoc.o' failed
make[4]: *** [/root/Netgear-A6210/os/linux/../../sta/assoc.o] Error 1
/usr/src/linux-headers-4.8.0-kali1-common/Makefile:1488: recipe for target 'module/root/Netgear-A6210/os/linux' failed
make[3]: *** [module/root/Netgear-A6210/os/linux] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.8.0-kali1-amd64'
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2
`

Running '$uname -a' returns:
Linux kali 4.8.0-kali1-amd64 #1 SMP Debian 4.8.5-1kali1 (2016-11-04) x86_64 GNU/Linux

Having a right headache getting kali to recognise the adapter.

@jurobystricky Used your driver in Linux Mint and works a charm! no issues at all :)

Any help would be great,
Thanks,
CoalDust

Make error

Make is throwing this up (Feb1)...

pi@raspberrypi:~/Netgear-A6210 $ sudo make
export DBGFLAGS

*** Building driver with debug messages ***

cp -f os/linux/Makefile.6 /home/pi/Netgear-A6210/os/linux/Makefile
make -C /lib/modules/4.1.16-v7+/build DBGFLAGS=-DDBG SUBDIRS=/home/pi/Netgear-A6210/os/linux modules
make[1]: *** /lib/modules/4.1.16-v7+/build: No such file or directory. Stop.
Makefile:59: recipe for target 'debug' failed
make: *** [debug] Error 2

hostAP support?

is any of these adapter able to be use in AP mode (hostAP) ?
what I mean is can any of them be used as a wireless access point in linux?

Some Warnings left with gcc-4.9

This is just an information about the success of building this driver on a Rasberry PI2+ with Kernel 4.4.7 and gcc-4.9 using rasbian OS. As I'm planning to buy EDUP EP-AC1605 because of the anntenas which is something I need. So I could test the module when I bought the wifi dongle. What is the current state, does it work somehow?

The only Warnings left during the compile process are these

In file included from /home/pi/src/Netgear-A6210/include/os/rt_linux.h:41:0,
from /home/pi/src/Netgear-A6210/include/rtmp_os.h:30,
from /home/pi/src/Netgear-A6210/include/rtmp_comm.h:64,
from /home/pi/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c:33:
/home/pi/src/Netgear-A6210/os/linux/../../os/linux/sta_ioctl.c: In function ‘rt_ioctl_giwscan’:
include/net/iw_handler.h:559:3: warning: array subscript is below array bounds [-Warray-bounds]
memcpy(stream + point_len, extra, iwe->u.data.length);
^
CC [M] /home/pi/src/Netgear-A6210/os/linux/../../mgmt/mgmt_vht.o
...
...
CC [M] /home/pi/src/Netgear-A6210/os/linux/../../common/cmm_data.o
/home/pi/src/Netgear-A6210/os/linux/../../common/cmm_data.c: In function ‘TxPktClassification’:
/home/pi/src/Netgear-A6210/os/linux/../../common/cmm_data.c:1085:4: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
&& (TxFrameType == TX_LEGACY_FRAME)
^
CC [M] /home/pi/src/Netgear-A6210/os/linux/../../common/rtmp_init.o
/home/pi/src/Netgear-A6210/os/linux/../../common/rtmp_init.c: In function ‘RTMPAllocAdapterBlock’:
/home/pi/src/Netgear-A6210/os/linux/../../common/rtmp_init.c:106:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_OFF, ("\n=== pAd = %p, size = %lu ===\n\n",
^

Confirmed that this works on Fedora 23

I couldn't find a better way to contact you guys but I wanted to thank you for your work, you all saved me a ton of headaches over the last day or two with this driver. I also wanted to let you know that I have successfully installed your driver twice on Fedora 23 (using two different kernels)

I just created a fresh install of Fedora 23 on my desktop and the driver works wonderfully. I even upgraded to the latest version of the kernel available on Fedora (4.5.6-200), recompiled and reinstalled the driver and it still works great.

Thanks,
Schuyler Martin

build error on gentoo linux-3.18.9

Just came across this forum where a guy reported a build error on a gentoo linux-3.18.9 'hardened'
[(https://www.reddit.com/r/linux/comments/3wtawx/netgear_ac1200_a6210_support_drivers/)]

This is not first-hand report, so don't take it too seriously, I don't even know if this bug is still valid !
Just thought the report would be more useful here than on reddit.

thanks for submitting the drivers by the way !
_jean-louis

Not working with 3.0

Hey my driver isnt working with my 3.0 port, it just freezes my pc after about 30 seconds.

I really need the 3.0 it runs too slow without it

Manjaro - Nothing happens

So I just installed the driver on my latest Manjaro with 4.4.20 kernel, after reboot... nothing happens. I keep unplugging and plugging the adapter back again but it looks like it doesnt even recognize it as a device plugged in...

Asus Ac 55

I'm a some what beginner with Ubuntu
I installed the make file no issues. The ac55 adapter is recognized with lsusb. But not recognized as a network adapter under lspci. Can you please help and show me how to use the adapter on Ubuntu 16.10

Wireless no longer works after kernel upgrade

I understand this is because the driver is only made and installed for the current running kernel version. Is there anyway to make it so that the driver is made and installed on all kernel versions similar to DKMS?

[Arch Linux] No network found

Hi, I followed the whole procedure, and tried different solutions but nothing works, the adapter is identified but I can't connect to any network:
screenshot from 2016-11-06 23-26-16

Please let me know if you have any idea on what I could try.
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.