如何將 RT2870STA.dat 連結到 AP 以使用 TP-Link T2UH AC600 進行 wifi 連接?
我買了一個 TP-Link Archer T2UH AC600 無線適配器,我已經能夠很好地編譯驅動程序,但我現在面臨的問題是
RT2870STA.dat
文件。我正在嘗試從 TP-Link 為 linux 機器提供的手冊中進行指導,但我對如何處理空欄位和大多數欄位感到困惑,我不明白它們的含義。Default CountryRegion=5 CountryRegionABand=7 CountryCode=CA SSID=Rogers343 <--#nomyreal SSID NetworkType=Infra WirelessMode=9 Channel=0 BeaconPeriod=100 TxPower=100 BGProtection=0 TxPreamble=0 RTSThreshold=2347 FragThreshold=2346 TxBurst=1 WmmCapable=0 AckPolicy=0;0;0;0 AuthMode=WPA2PSK EncrypType=NONE WPAPSK=1234567 DefaultKeyID=1 Key1Type=0 Key1Str= Key2Type=0 Key2Str= Key3Type=0 Key3Str= Key4Type=0 Key4Str= PSMode=CAM FastRoaming=0 RoamThreshold=70 HT_RDG=1 HT_EXTCHA=0 HT_OpMode=1 HT_MpduDensity=4 HT_BW=1 HT_AutoBA=1 HT_BADecline=0 HT_AMSDU=0 HT_BAWinSize=64 HT_GI=1 HT_MCS=33 HT_MIMOPSMode=3 EthConvertMode= EthCloneMac= IEEE80211H=0 TGnWifiTest=0 WirelessEvent=0 MeshId=MESH MeshAutoLink=1 MeshAuthMode=OPEN MeshEncrypType=NONE MeshWPAKEY= MeshDefaultkey=1 MeshWEPKEY= CarrierDetect=0
有一些空白欄位,我不知道那裡有什麼樣的值。我知道將 更改
SSID
為我的 wifi 連接的名稱。我不太確定CountryCode
我在加拿大有什麼價值,AuthMode
我認為我應該放WPA
&WPA2Personal
因為這是我的 wifi 連接目前使用的。在EncrypType
文件中自動沒有我不確定那是什麼,這WPAPSK
將是我的密碼。還有很多其他空白欄位,我不知道如何處理它們。因為我正在嘗試使用 iwpriv 在 Kali Linux 中設置我的無線適配器,並且配置需要我移動RT2870STA.dat
到/etc/Wireless/RT2870STA/RT2870STA.dat
為了繼續。另外,為了讓我使用 dhclient 請求 ip,我需要配置接入點的 SSID。我的問題是如何獲取 AP 的 SSID?如果我將我的 wlan0 介面的值與我的 ra0 介面進行比較,wlan0 接入點看起來像一個 MAC 地址,而我在適配器上看不到 MAC 地址,我不知道該放什麼值。以下是我設置適配器的步驟iwpriv
iwpriv ra0 set NetworkType=Infra iwpriv ra0 set AuthMode=WPA2PSK iwpriv ra0 set EncrypType=TKIP iwpriv ra0 set SSID="Rogers343" iwpriv ra0 set WPAPSK=1234567 <-- not my acutal pswd iwpriv ra0 set WirelessMode=14
在我輸入這些命令後,這裡
iwconfig ra0
顯示的是Ralink STA ESSID:"Rogers343" Nickname:"MT7610U_STA" Mode:Auto Frequency=5.18 GHz Access Point: Not-Associated Bit Rate:1 Mb/s RTS thr:off Fragment thr:off Encryption key: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
dmesg
插入適配器時的輸出 。3539.786506] usb 1-1.3: new high-speed USB device number 8 using ehci-pci [ 3539.910506] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 3539.910508] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3539.910509] usb 1-1.3: Product: WiFi [ 3539.910510] usb 1-1.3: Manufacturer: MediaTek [ 3539.910511] usb 1-1.3: SerialNumber: 1.0 [ 3539.911075] === pAd = ffffc64740b25000, size = 892576 === [ 3539.911171] <-- RTMPAllocTxRxRingMemory, Status=0 [ 3539.911300] <-- RTMPAllocAdapterBlock, Status=0 [ 3539.911493] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002 [ 3539.912593] MCUType = 2 [ 3539.912869] NVM is EFUSE [ 3539.912870] Endpoint(8) is for In-band Command [ 3539.912871] Endpoint(4) is for WMM0 AC0 [ 3539.912871] Endpoint(5) is for WMM0 AC1 [ 3539.912872] Endpoint(6) is for WMM0 AC2 [ 3539.912872] Endpoint(7) is for WMM0 AC3 [ 3539.912873] Endpoint(9) is for WMM1 AC0 [ 3539.912874] Endpoint(84) is for Data-In [ 3539.912874] Endpoint(85) is for Command Rsp [ 3632.642059] -->RTUSBVenderReset [ 3632.642162] <--RTUSBVenderReset [ 3632.647128] fw version:0.1.00 build:7640 [ 3632.647130] build time:201308221655____ [ 3632.647135] ilm length = 68780(bytes) [ 3632.647136] dlm length = 11476(bytes) [ 3632.729684] # [ 3632.736655] loading fw...... [ 3632.857890] # [ 3633.074167] RTMP_TimerListAdd: add timer obj ffffc64740ba61e0! [ 3633.074169] RTMP_TimerListAdd: add timer obj ffffc64740ba6250! [ 3633.074177] RTMP_TimerListAdd: add timer obj ffffc64740b38c38! [ 3633.074178] RTMP_TimerListAdd: add timer obj ffffc64740b38e18! [ 3633.086233] cfg_mode=5 [ 3633.086236] wmode_band_equal(): Band Not Equal! [ 3633.086350] Key1Str is Invalid key length(0) or Type(0) [ 3633.086361] Key2Str is Invalid key length(0) or Type(0) [ 3633.086372] Key3Str is Invalid key length(0) or Type(0) [ 3633.086383] Key4Str is Invalid key length(0) or Type(0) [ 3633.086687] 1. Phy Mode = 31 [ 3633.086688] 2. Phy Mode = 31 [ 3633.086690] NVM is Efuse and its size =1d[1e0-1fc] [ 3633.097715] /root/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../chips/mt76x0.c:2114 assert (pAd->TxPower[choffset].Channel == 36)failed [ 3633.111176] ERROR!!! E2PROM: WRONG VERSION 0x2, should be 1 [ 3633.115302] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xf8 [ 3633.115303] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffff8 [ 3633.115303] Temperature Tx ALC not enabled [ 3633.130303] 3. Phy Mode = 31 [ 3633.130305] AntCfgInit: primary/secondary ant 0/1 [ 3633.138969] RTMPSetPhyMode: channel is out of range, use first channel=1 [ 3633.140555] MCS Set = ff 00 00 00 01 [ 3633.150491] <==== rt28xx_init, Status=0 [ 3633.151431] 0x1300 = 00064300 [ 3633.151432] RTMPDrvSTAOpen(1):Check if PDMA is idle! [ 3633.151556] RTMPDrvSTAOpen(2):Check if PDMA is idle! [ 4260.799872] receive cmd msg fail(-71) [ 4260.799965] Bulk In Failed. Status=-71, BIIdx=0x0, BIRIdx=0x0, actual_length= 0x0 [ 4260.804373] receive cmd msg fail(-71) [ 4260.832271] # [ 4260.834242] receive cmd msg fail(-71) [ 4260.838494] receive cmd msg fail(-71) [ 4260.841272] # [ 4260.842743] receive cmd msg fail(-71) [ 4260.846994] receive cmd msg fail(-71) [ 4260.850247] # [ 4260.851243] receive cmd msg fail(-71) [ 4260.855520] receive cmd msg fail(-71) [ 4260.859274] # [ 4260.996257] receive cmd msg fail(-71) [ 4260.998887] # [ 4261.000507] receive cmd msg fail(-71) [ 4261.003855] RTUSB_VendorRequest failed(-71),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x31080002 [ 4261.004758] receive cmd msg fail(-71) [ 4261.007759] Bulk In Failed. Status=-71, BIIdx=0x0, BIRIdx=0x0, actual_length= 0x0 [ 4261.009009] receive cmd msg fail(-71) [ 4261.030639] # [ 4261.034139] usb 1-1.3: USB disconnect, device number 8 [ 4261.034509] receive cmd msg fail(-108) [ 4261.034511] usb_rx_cmd_msg_complete:submit urb fail(-19) [ 4261.034517] usb_rx_cmd_msg_submit:submit urb fail(-19) [ 4261.034519] rtusb_disconnect: unregister usbnet usb-0000:00:1d.0-1.3 [ 4261.034522] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0! [ 4261.035606] # [ 4261.035608] RTUSB_VendorRequest failed(-19),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x31080542 [ 4261.035609] CMDTHREAD_RESET_BULK_IN: Cannot do bulk in because flags(0x31080542) on ! [ 4261.049617] WIFI device has been disconnected [ 4261.049668] WIFI device has been disconnected [ 4261.049668] WIFI device has been disconnected [ 4261.049669] WIFI device has been disconnected [ 4261.049673] tx_kickout_fail_count = 0 [ 4261.049673] tx_timeout_fail_count = 0 [ 4261.049674] rx_receive_fail_count = 58 [ 4261.049674] alloc_cmd_msg = 7672 [ 4261.049675] free_cmd_msg = 7672 [ 4261.132674] WIFI device has been disconnected [ 4261.132677] ==>RT65xx_WLAN_ChipOnOff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0xff000003, Reg-WlanFunCtrl=0xffffffff [ 4261.132677] WIFI device has been disconnected [ 4261.132678] VendrCmdMultiWrite_nBytes failed! [ 4261.132698] WIFI device has been disconnected [ 4261.132708] ---> RTMPFreeTxRxRingMemory [ 4261.132722] <--- RTMPFreeTxRxRingMemory [ 4261.132759] RTUSB disconnect successfully [ 4981.190839] usb 1-1.3: new high-speed USB device number 9 using ehci-pci [ 4981.315282] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 4981.315284] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4981.315285] usb 1-1.3: Product: WiFi [ 4981.315286] usb 1-1.3: Manufacturer: MediaTek [ 4981.315287] usb 1-1.3: SerialNumber: 1.0 [ 4981.315819] === pAd = ffffc64740b25000, size = 892576 === [ 4981.315904] <-- RTMPAllocTxRxRingMemory, Status=0 [ 4981.316006] <-- RTMPAllocAdapterBlock, Status=0 [ 4981.316133] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002 [ 4981.317259] MCUType = 2 [ 4981.317507] NVM is EFUSE [ 4981.317508] Endpoint(8) is for In-band Command [ 4981.317509] Endpoint(4) is for WMM0 AC0 [ 4981.317509] Endpoint(5) is for WMM0 AC1 [ 4981.317510] Endpoint(6) is for WMM0 AC2 [ 4981.317511] Endpoint(7) is for WMM0 AC3 [ 4981.317511] Endpoint(9) is for WMM1 AC0 [ 4981.317512] Endpoint(84) is for Data-In [ 4981.317512] Endpoint(85) is for Command Rsp
然後我這樣做
systemctl restart network-manager.service
了,此時我的網路被踢了,但我可以看到兩個 wifi 圖示都出現在網路管理器中,但兩張卡都顯示“不可用”,如下圖所示,並且沒有網路被拾取。
238.916761] bluetooth hci0: firmware: failed to load brcm/BCM.hcd (-2) [ 238.916766] bluetooth hci0: Direct firmware load for brcm/BCM.hcd failed with error -2 [ 238.916769] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [ 239.115808] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 239.310935] r8169 0000:07:00.0 eth0: link down [ 239.310991] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 239.311865] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 240.719041] atkbd serio0: Unknown key pressed (translated set 2, code 0x8d on isa0060/serio0). [ 240.719043] atkbd serio0: Use 'setkeycodes e00d <keycode>' to make it known. [ 285.069677] ERROR @wl_notify_scan_status : wlan0 Scan_results error (-22) [ 954.235212] perf: interrupt took too long (2506 > 2500), lowering kernel.perf_event_max_sample_rate to 79750 [ 1193.231540] perf: interrupt took too long (3135 > 3132), lowering kernel.perf_event_max_sample_rate to 63750 [ 1470.857282] perf: interrupt took too long (4013 > 3918), lowering kernel.perf_event_max_sample_rate to 49750 [ 2345.359889] perf: interrupt took too long (5032 > 5016), lowering kernel.perf_event_max_sample_rate to 39500 [ 3539.786506] usb 1-1.3: new high-speed USB device number 8 using ehci-pci [ 3539.910506] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 3539.910508] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3539.910509] usb 1-1.3: Product: WiFi [ 3539.910510] usb 1-1.3: Manufacturer: MediaTek [ 3539.910511] usb 1-1.3: SerialNumber: 1.0 [ 3539.911075] === pAd = ffffc64740b25000, size = 892576 === [ 3539.911171] <-- RTMPAllocTxRxRingMemory, Status=0 [ 3539.911300] <-- RTMPAllocAdapterBlock, Status=0 [ 3539.911493] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002 [ 3539.912593] MCUType = 2 [ 3539.912869] NVM is EFUSE [ 3539.912870] Endpoint(8) is for In-band Command [ 3539.912871] Endpoint(4) is for WMM0 AC0 [ 3539.912871] Endpoint(5) is for WMM0 AC1 [ 3539.912872] Endpoint(6) is for WMM0 AC2 [ 3539.912872] Endpoint(7) is for WMM0 AC3 [ 3539.912873] Endpoint(9) is for WMM1 AC0 [ 3539.912874] Endpoint(84) is for Data-In [ 3539.912874] Endpoint(85) is for Command Rsp [ 3632.642059] -->RTUSBVenderReset [ 3632.642162] <--RTUSBVenderReset [ 3632.647128] fw version:0.1.00 build:7640 [ 3632.647130] build time:201308221655____ [ 3632.647135] ilm length = 68780(bytes) [ 3632.647136] dlm length = 11476(bytes) [ 3632.729684] # [ 3632.736655] loading fw...... [ 3632.857890] # [ 3633.074167] RTMP_TimerListAdd: add timer obj ffffc64740ba61e0! [ 3633.074169] RTMP_TimerListAdd: add timer obj ffffc64740ba6250! [ 3633.074170] RTMP_TimerListAdd: add timer obj ffffc64740ba62c0! [ 3633.074171] RTMP_TimerListAdd: add timer obj ffffc64740ba6170! [ 3633.086233] cfg_mode=5 [ 3633.086236] wmode_band_equal(): Band Not Equal! [ 3633.086350] Key1Str is Invalid key length(0) or Type(0) [ 3633.086361] Key2Str is Invalid key length(0) or Type(0) [ 3633.086372] Key3Str is Invalid key length(0) or Type(0) [ 3633.086383] Key4Str is Invalid key length(0) or Type(0) [ 3633.086687] 1. Phy Mode = 31 [ 3633.086688] 2. Phy Mode = 31 [ 3633.086690] NVM is Efuse and its size =1d[1e0-1fc] [ 3633.097715] /root/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../chips/mt76x0.c:2114 assert (pAd->TxPower[choffset].Channel == 36)failed [ 3633.111176] ERROR!!! E2PROM: WRONG VERSION 0x2, should be 1 [ 3633.115302] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xf8 [ 3633.115303] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffff8 [ 3633.115303] Temperature Tx ALC not enabled [ 3633.130303] 3. Phy Mode = 31 [ 3633.130305] AntCfgInit: primary/secondary ant 0/1 [ 3633.138969] RTMPSetPhyMode: channel is out of range, use first channel=1 [ 3633.140555] MCS Set = ff 00 00 00 01 [ 3633.150491] <==== rt28xx_init, Status=0 [ 3633.151431] 0x1300 = 00064300 [ 3633.151432] RTMPDrvSTAOpen(1):Check if PDMA is idle! [ 3633.151556] RTMPDrvSTAOpen(2):Check if PDMA is idle! [ 4260.799872] receive cmd msg fail(-71) [ 4260.799965] Bulk In Failed. Status=-71, BIIdx=0x0, BIRIdx=0x0, actual_length= 0x0 [ 4260.804373] receive cmd msg fail(-71) [ 4260.808616] receive cmd msg fail(-71) [ 4260.812867] receive cmd msg fail(-71) [ 4260.817116] receive cmd msg fail(-71) [ 4260.898248] receive cmd msg fail(-71) [ 4260.900248] RTUSB_VendorRequest failed(-71),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x31080002 [ 4260.902500] receive cmd msg fail(-71) [ 4260.904250] Bulk In Failed. Status=-71, BIIdx=0x0, BIRIdx=0x0, actual_length= 0x0 [ 4260.945005] receive cmd msg fail(-71) [ 4261.000507] receive cmd msg fail(-71) [ 4261.003855] RTUSB_VendorRequest failed(-71),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x31080002 [ 4261.004758] receive cmd msg fail(-71) [ 4261.007759] Bulk In Failed. Status=-71, BIIdx=0x0, BIRIdx=0x0, actual_length= 0x0 [ 4261.009009] receive cmd msg fail(-71) [ 4261.034139] usb 1-1.3: USB disconnect, device number 8 [ 4261.034509] receive cmd msg fail(-108) [ 4261.034511] usb_rx_cmd_msg_complete:submit urb fail(-19) [ 4261.034517] usb_rx_cmd_msg_submit:submit urb fail(-19) [ 4261.034519] rtusb_disconnect: unregister usbnet usb-0000:00:1d.0-1.3 [ 4261.034522] RtmpOSNetDevDetach(): RtmpOSNetDeviceDetach(), dev->name=ra0! [ 4261.035606] # [ 4261.035608] RTUSB_VendorRequest failed(-19),TxFlags=0x0, ReqType=IN, Req=0x7, Idx=0x1000,pAd->Flags=0x31080542 [ 4261.035609] CMDTHREAD_RESET_BULK_IN: Cannot do bulk in because flags(0x31080542) on ! [ 4261.049617] WIFI device has been disconnected [ 4261.049668] WIFI device has been disconnected [ 4261.049668] WIFI device has been disconnected [ 4261.049669] WIFI device has been disconnected [ 4261.049673] tx_kickout_fail_count = 0 [ 4261.049673] tx_timeout_fail_count = 0 [ 4261.049674] rx_receive_fail_count = 58 [ 4261.049674] alloc_cmd_msg = 7672 [ 4261.049675] free_cmd_msg = 7672 [ 4261.132674] WIFI device has been disconnected [ 4261.132677] ==>RT65xx_WLAN_ChipOnOff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0xff000003, Reg-WlanFunCtrl=0xffffffff [ 4261.132677] WIFI device has been disconnected [ 4261.132678] VendrCmdMultiWrite_nBytes failed! [ 4261.132698] WIFI device has been disconnected [ 4261.132708] ---> RTMPFreeTxRxRingMemory [ 4261.132722] <--- RTMPFreeTxRxRingMemory [ 4261.132759] RTUSB disconnect successfully [ 4981.190839] usb 1-1.3: new high-speed USB device number 9 using ehci-pci [ 4981.315282] usb 1-1.3: New USB device found, idVendor=148f, idProduct=761a [ 4981.315284] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4981.315285] usb 1-1.3: Product: WiFi [ 4981.315286] usb 1-1.3: Manufacturer: MediaTek [ 4981.315287] usb 1-1.3: SerialNumber: 1.0 [ 4981.315819] === pAd = ffffc64740b25000, size = 892576 === [ 4981.315904] <-- RTMPAllocTxRxRingMemory, Status=0 [ 4981.316006] <-- RTMPAllocAdapterBlock, Status=0 [ 4981.316133] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0x0, Reg-WlanFunCtrl=0xff000002 [ 4981.317259] MCUType = 2 [ 4981.317507] NVM is EFUSE [ 4981.317508] Endpoint(8) is for In-band Command [ 4981.317509] Endpoint(4) is for WMM0 AC0 [ 4981.317509] Endpoint(5) is for WMM0 AC1 [ 4981.317510] Endpoint(6) is for WMM0 AC2 [ 4981.317511] Endpoint(7) is for WMM0 AC3 [ 4981.317511] Endpoint(9) is for WMM1 AC0 [ 4981.317512] Endpoint(84) is for Data-In [ 4981.317512] Endpoint(85) is for Command Rsp [ 5382.065830] -->RTUSBVenderReset [ 5382.066025] <--RTUSBVenderReset [ 5382.070992] fw version:0.1.00 build:7640 [ 5382.070994] build time:201308221655____ [ 5382.071000] ilm length = 68780(bytes) [ 5382.071000] dlm length = 11476(bytes) [ 5382.152631] # [ 5382.158632] loading fw...... [ 5382.276688] # [ 5382.494398] RTMP_TimerListAdd: add timer obj ffffc64740ba61e0! [ 5382.494400] RTMP_TimerListAdd: add timer obj ffffc64740ba6250! [ 5382.494401] RTMP_TimerListAdd: add timer obj ffffc64740ba62c0! [ 5382.494402] RTMP_TimerListAdd: add timer obj ffffc64740ba6170! [ 5382.494408] RTMP_TimerListAdd: add timer obj ffffc64740b38c38! [ 5382.494409] RTMP_TimerListAdd: add timer obj ffffc64740b38e18! [ 5382.494466] cfg_mode=5 [ 5382.494468] wmode_band_equal(): Band Not Equal! [ 5382.494582] Key1Str is Invalid key length(0) or Type(0) [ 5382.494593] Key2Str is Invalid key length(0) or Type(0) [ 5382.494604] Key3Str is Invalid key length(0) or Type(0) [ 5382.494616] Key4Str is Invalid key length(0) or Type(0) [ 5382.494856] 1. Phy Mode = 31 [ 5382.494856] 2. Phy Mode = 31 [ 5382.494858] NVM is Efuse and its size =1d[1e0-1fc] [ 5382.506903] /root/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../chips/mt76x0.c:2114 assert (pAd->TxPower[choffset].Channel == 36)failed [ 5382.517405] ERROR!!! E2PROM: WRONG VERSION 0x2, should be 1 [ 5382.521530] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xf8 [ 5382.521531] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffff8 [ 5382.521532] Temperature Tx ALC not enabled [ 5382.537531] 3. Phy Mode = 31 [ 5382.537533] AntCfgInit: primary/secondary ant 0/1 [ 5382.542790] RTMPSetPhyMode: channel is out of range, use first channel=1 [ 5382.544283] MCS Set = ff 00 00 00 01 [ 5382.554214] <==== rt28xx_init, Status=0 [ 5382.555157] 0x1300 = 00064300 [ 5382.555158] RTMPDrvSTAOpen(1):Check if PDMA is idle! [ 5382.555314] RTMPDrvSTAOpen(2):Check if PDMA is idle! [ 5482.218330] ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 317 [ 5550.260554] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 5550.293209] ERROR!!! RTMPSetTimer failed, Halt in Progress! [ 5550.300208] ==>RT65xx_WLAN_ChipOnOff(): OnOff:0, Reset= 0, pAd->WlanFunCtrl:0xff000003, Reg-WlanFunCtrl=0xff000003 [ 5550.303830] receive cmd msg fail(-2) [ 5550.303842] tx_kickout_fail_count = 0 [ 5550.303844] tx_timeout_fail_count = 0 [ 5550.303845] rx_receive_fail_count = 0 [ 5550.303846] alloc_cmd_msg = 6981 [ 5550.303846] free_cmd_msg = 6981 [ 5550.359595] ==>RT65xx_WLAN_ChipOnOff(): OnOff:1, Reset= 0, pAd->WlanFunCtrl:0xff000000, Reg-WlanFunCtrl=0xff000000 [ 5550.366721] -->RTUSBVenderReset [ 5550.366846] <--RTUSBVenderReset [ 5550.371809] fw version:0.1.00 build:7640 [ 5550.371811] build time:201308221655____ [ 5550.371825] ilm length = 68780(bytes) [ 5550.371825] dlm length = 11476(bytes) [ 5550.451175] # [ 5550.457901] loading fw...... [ 5550.796383] RTMP_TimerListAdd: add timer obj ffffc64740b38d18! [ 5550.796384] RTMP_TimerListAdd: add timer obj ffffc64740b27b80! [ 5550.796384] RTMP_TimerListAdd: add timer obj ffffc64740b27bf8! [ 5550.796385] RTMP_TimerListAdd: add timer obj ffffc64740b38e88! [ 5550.796386] RTMP_TimerListAdd: add timer obj ffffc64740b38c38! [ 5550.796387] RTMP_TimerListAdd: add timer obj ffffc64740b38e18! [ 5550.796444] cfg_mode=5 [ 5550.796446] wmode_band_equal(): Band Not Equal! [ 5550.796559] Key1Str is Invalid key length(0) or Type(0) [ 5550.796570] Key2Str is Invalid key length(0) or Type(0) [ 5550.796581] Key3Str is Invalid key length(0) or Type(0) [ 5550.796592] Key4Str is Invalid key length(0) or Type(0) [ 5550.796832] 1. Phy Mode = 31 [ 5550.796833] 2. Phy Mode = 31 [ 5550.796834] NVM is Efuse and its size =1d[1e0-1fc] [ 5550.807751] /root/src/mt7610u_wifi_sta_v3002_dpo_20130916/os/linux/../../chips/mt76x0.c:2114 assert (pAd->TxPower[choffset].Channel == 36)failed [ 5550.818252] ERROR!!! E2PROM: WRONG VERSION 0x2, should be 1 [ 5550.822377] mt76x0_read_tx_alc_info_from_eeprom: EEPROM_MT76x0_TEMPERATURE_OFFSET (0xD1) = 0xf8 [ 5550.822378] mt76x0_read_tx_alc_info_from_eeprom: TemperatureOffset = 0xfffffff8 [ 5550.822378] Temperature Tx ALC not enabled [ 5550.839378] 3. Phy Mode = 31 [ 5550.839379] AntCfgInit: primary/secondary ant 0/1 [ 5550.844637] RTMPSetPhyMode: channel is out of range, use first channel=1 [ 5550.846035] MCS Set = ff 00 00 00 01 [ 5550.855972] <==== rt28xx_init, Status=0 [ 5550.857128] 0x1300 = 00064300 [ 5550.857129] RTMPDrvSTAOpen(1):Check if PDMA is idle! [ 5550.857255] RTMPDrvSTAOpen(2):Check if PDMA is idle! [ 5551.014244] BUG: unable to handle kernel paging request at 00007fff13453d00 [ 5551.014316] IP: [<ffffffffc0df441a>] rt_ioctl_siwpmksa+0x8a/0x140 [mt7650u_sta] [ 5551.014402] PGD 116cca067 PUD 11599c067 PMD 117fd0067 PTE 800000010a6d3867 [ 5551.014467] Oops: 0001 [#1] SMP [ 5551.014494] Modules linked in: fuse nfnetlink_queue nfnetlink_log nfnetlink binfmt_misc wl(PO) mt7650u_sta(O) snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp btusb btrtl btbcm btintel uvcvideo bluetooth videobuf2_vmalloc kvm_intel dcdbas videobuf2_memops iTCO_wdt snd_hda_codec_realtek videobuf2_v4l2 iTCO_vendor_support kvm hid_rmi dell_smm_hwmon videobuf2_core videodev irqbypass snd_hda_codec_generic cfg80211 snd_hda_intel rtsx_usb_ms hid_multitouch memstick pcspkr media snd_soc_rt5640 snd_hda_codec snd_soc_ssm4567 snd_soc_rl6231 snd_soc_core snd_hda_core joydev evdev snd_hwdep snd_compress snd_pcm sg serio_raw i915 wmi snd_timer snd shpchp dw_dmac battery video elan_i2c dell_rbtn rfkill i2c_i801 dw_dmac_core snd_soc_sst_acpi mei_me mei snd_soc_sst_match lpc_ich drm_kms_helper [ 5551.015186] soundcore i2c_smbus acpi_pad ac button drm i2c_algo_bit tpm_tis tpm_tis_core tpm i2c_designware_platform i2c_designware_core ip_tables x_tables autofs4 rtsx_usb_sdmmc rtsx_usb mfd_core ext4 crc16 usbhid jbd2 crc32c_generic fscrypto ecb mbcache sr_mod cdrom sd_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd ahci libahci psmouse xhci_pci xhci_hcd libata ehci_pci ehci_hcd scsi_mod r8169 mii usbcore usb_common fan thermal sdhci_acpi sdhci mmc_core fjes i2c_hid hid [ 5551.015700] CPU: 0 PID: 838 Comm: wpa_supplicant Tainted: P O 4.8.0-kali1-amd64 #1 Debian 4.8.5-1kali1 [ 5551.015775] Hardware name: Dell Inc. Inspiron 3543/0MGXC6, BIOS A00 10/25/2014 [ 5551.015832] task: ffff906d98270080 task.stack: ffff906d934a4000 [ 5551.015874] RIP: 0010:[<ffffffffc0df441a>] [<ffffffffc0df441a>] rt_ioctl_siwpmksa+0x8a/0x140 [mt7650u_sta] [ 5551.015974] RSP: 0018:ffff906d934a7ca8 EFLAGS: 00010297 [ 5551.016016] RAX: 0000000000000000 RBX: 00007fff13453d00 RCX: 0000000000000000 [ 5551.016067] RDX: 0000000000005013 RSI: 0000000000000000 RDI: ffffc64740b25000 [ 5551.016119] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 5551.016169] R10: 0000000000000036 R11: ffffffffc0df4390 R12: ffffc64740b25000 [ 5551.016224] R13: ffff906d0ca3d000 R14: ffffffff8429a888 R15: ffffffffc0df4390 [ 5551.016275] FS: 00007f275db5a880(0000) GS:ffff906d9ec00000(0000) knlGS:0000000000000000 [ 5551.016338] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5551.016382] CR2: 00007fff13453d00 CR3: 0000000116c12000 CR4: 00000000003406f0 [ 5551.016437] Stack: [ 5551.016456] ffff906cacae6a00 ffff906d941d1000 ffff906d93dbd900 0000000000000024 [ 5551.016522] 000000005485238f ffff906d2a0b0540 ffff906d934a7e20 0000000000000000 [ 5551.016586] 0000000000008b36 ffffffff841ce8b8 ffff906d0ca3d000 00007fff13453d00 [ 5551.016652] Call Trace: [ 5551.016681] [<ffffffff841ce8b8>] ? ioctl_standard_iw_point+0x2e8/0x3c0 [ 5551.016734] [<ffffffff841cea3a>] ? ioctl_standard_call+0xaa/0xd0 [ 5551.016783] [<ffffffff841cec55>] ? wext_handle_ioctl+0x75/0xd0 [ 5551.016828] [<ffffffff840fa62f>] ? dev_ioctl+0x29f/0x580 [ 5551.016871] [<ffffffff840bf8bd>] ? sock_ioctl+0x11d/0x280 [ 5551.016916] [<ffffffff83e1334f>] ? do_vfs_ioctl+0x9f/0x5f0 [ 5551.016962] [<ffffffff83dff6d0>] ? vfs_read+0x90/0x130 [ 5551.017006] [<ffffffff83e13914>] ? SyS_ioctl+0x74/0x80 [ 5551.017047] [<ffffffff841e18f6>] ? system_call_fast_compare_end+0xc/0x96 [ 5551.017100] Code: 00 bd 9c ff ff ff eb 78 48 85 db 0f 84 a0 00 00 00 48 83 3d 40 23 04 00 02 89 c5 76 0e 48 83 3d 5c a5 06 00 00 0f 84 a5 00 00 00 <8b> 03 83 f8 03 74 6b 83 f8 02 74 70 83 f8 01 0f 94 c0 0f b6 c0 [ 5551.017394] RIP [<ffffffffc0df441a>] rt_ioctl_siwpmksa+0x8a/0x140 [mt7650u_sta] [ 5551.017477] RSP <ffff906d934a7ca8> [ 5551.017504] CR2: 00007fff13453d00 [ 5551.027427] ---[ end trace 59de0c89298499a0 ]---
我必須在我的舊筆記型電腦上執行此操作(帶有 RT5390 的 HP g6)。
許多欄位保持空白,包括我曾經填充過的 ssid,但它不是必需的。
要做的主要事情是有幾個文件需要編輯預建構。
我啟動了我的舊筆記型電腦以檢查…重新提取焦油並進行了融合…
config.mk
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n changed to: HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
pci_main_dev.c
註釋掉了一些阻止的邏輯:
SET_NETDEV_DEV(net_dev,&(pci-dev->dev))
(沒有那個網路管理器將不被支持,但邏輯是用於核心 2.6.0,不記得我是否真的在那個 matchine 上有那個舊的核心……可能在某個時候做了)。
rt_linux.c
我編輯了 skb->tail 以將其轉換為 unsigned int 32 位。
最後在makefile中:
- 我刪除了周圍的邏輯並更改了值;晶片組 = 5390
- 刪除了與 PC 相同的所有平台
- 刪除了 MAKE MAKE = make 周圍的所有邏輯
(你可能不必像我想像的那樣經歷所有這些步驟,現在他們有更好的版本,但他們在那裡……)
關於 dat 文件,我更改了 3x 值;(但如果您為網路管理器編譯,則不需要它們,就像我稍後所做的那樣)。
- SSID= - EncrypType=wpa-psk - WPAPSK=
全部建構完成後,我將 dat 文件放入;
/etc/Wireless/RT5390STA/RT5390STA.dat /etc/Wireless/RT5390STA/RT5390STACard.dat
如果您願意或有幫助,比較我可以複製 .dat 文件。
更新:查找要列入黑名單的模組;採用;
sudo lscpi -v | less
我目前機器的範例輸出;
03:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81) DeviceName: SP1 Subsystem: Intel Corporation Dual Band Wireless AC 3165 Flags: bus master, fast devsel, latency 0, IRQ 42 Memory at f1000000 (64-bit, non-prefetchable) [size=8K] Capabilities: [c8] Power Management version 3 Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [40] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Device Serial Number dc-53-60-ff-ff-5f-cb-f2 Capabilities: [14c] Latency Tolerance Reporting Capabilities: [154] L1 PM Substates Kernel driver in use: iwlwifi Kernel modules: iwlwifi
在這種情況下,我會在 /etc/modprobe.d/wifi.conf 中列入黑名單
blacklist iwlwifi
重複直到在您看到的無線設備上:
Kernel driver in use: rt2800pci
更新:
我挖出了我的 tp-link usb 適配器(OP 正在嘗試對 usb 而不是 pci 設備進行排序)。
我還沒有編譯 USB 的原始碼,這僅適用於我的核心和韌體 blob 已經可用。
[ 25.502040] usb 2-1: new high-speed USB device number 2 using xhci_hcd [ 25.660113] usb 2-1: New USB device found, idVendor=148f, idProduct=5572 [ 25.660124] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 25.660129] usb 2-1: Product: 802.11 n WLAN [ 25.660133] usb 2-1: Manufacturer: Ralink [ 25.660136] usb 2-1: SerialNumber: 1.0 [ 25.827234] usb 2-1: reset high-speed USB device number 2 using xhci_hcd [ 25.977689] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 5592, rev 0222 detected [ 26.088458] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 000f detected [ 26.090545] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht' [ 26.092720] usbcore: registered new interface driver rt2800usb [ 26.122102] ieee80211 phy1: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin' [ 26.122379] ieee80211 phy1: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
以下是目前的核心模組:
$ lsmod | grep rt2 rt2800usb 28672 0 rt2x00usb 20480 1 rt2800usb rt2800lib 81920 1 rt2800usb rt2x00lib 45056 3 rt2800lib,rt2800usb,rt2x00usb crc_ccitt 16384 1 rt2800lib mac80211 569344 4 rt2800lib,iwlmvm,rt2x00lib,rt2x00usb cfg80211 471040 4 iwlmvm,iwlwifi,rt2x00lib,mac80211 usbcore 208896 6 rt2800usb,rt2x00usb,ehci_hcd,xhci_pci,xhci_hcd,ehci_pci
韌體 blob 來自此軟體包:
firmware-misc-nonfree: /lib/firmware/rt2870.bin
如果 OP 想要,我可以用這個 USB 設備測試源包嗎?