LorenzoBianconi/mt76

5 GHz channels

Opened this issue · 8 comments

Hi LorenzoBianconi,

thank you very much for your contribution of the mt76 firmware!

I have an issue to connect to the 5 GHz wifi channels. If I set the router to channels 36, 40, 44 and 48, I can connect with it. But, if I set to other channels such 52 and above, I'm unable to connect.
My router is Fritz!Box 6591 cable and my usb wifi stick is FRITZ!WLAN USB Stick AC 860.
I can connect to the router with the internal wifi card of my laptop with any channels.

I can provide you any logs, but you got to tell me which one...

Thank you.

Best regards,
Anmeld

@anmeld Do you mean you are using mt76x2u/mt76x0u in AP on channel 52, right? IIRC 52 is a DFS channel and DFS is not supported on usb,

Thank you for quick response.

In Germany, it is allow to use the DFS channel. The router will check and ban the DFS channel for up to 10 min. After that the DFS channels will be released, if there is no high priority user. According to the technical manual fritz!wlan usb support the 5GHz bandwidth 5.47~5.725 GHz.
And I have no problem connecting to my router with an internal wifi card by intel.

I'm using fritz!wlan usb with mt7662u as station mode.

I have difficulty to understand the output log, see the attachment. This what I did:

  1. sudo service network-manager stop
  2. sudo pkill -9 wpa_supplicant$
  3. wpa_supplicant -dd -u -f $LOG -B
  4. mt7662u/usb reconnects to the router with channel 36.
  5. I changed to channel 56.
  6. I tried 2 times to reconnect and failed.
  7. I changed to channel 36 back again.
  8. Reconnect worked for channel 36.

wpa_supplicant.log

@anmeld what kernel version are you running? Moreover while scanning can you please run 'iw event' in another terminal?

@LorenzoBianconi I'm running 5.3.0-2-amd64.

The logs shows the station usb trying to connecting the router which at that moment is set to a higher freq channel.

'iw event' output:

wlxf0b014915e5b (phy #0): disconnected (by AP) reason: 3: Deauthenticated because sending station is leaving (or has left) the IBSS or ESS
phy #0: regulatory domain change: set to world roaming by the wireless core upon initialization request
wlxf0b014915e5b (phy #0): scan started
phy #0: beacon hint:
phy0 5180 MHz [36]:
	o Initiating radiation enabled
phy #0: beacon hint:
phy0 5220 MHz [44]:
	o Initiating radiation enabled
wlxf0b014915e5b (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "fouLRp3Kwu" ""
wlxf0b014915e5b: new station dc:39:6f:b9:1b:60
wlxf0b014915e5b: del station dc:39:6f:b9:1b:60
wlxf0b014915e5b (phy #0): auth: timed out
wlxf0b014915e5b (phy #0): scan started
wlxf0b014915e5b (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "fouLRp3Kwu" ""
wlxf0b014915e5b (phy #0): scan started
wlxf0b014915e5b (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "fouLRp3Kwu" ""
wlxf0b014915e5b (phy #0): scan started
wlxf0b014915e5b (phy #0): scan finished: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825, "fouLRp3Kwu" ""

repeating the "scan started" and "start finished" lines afterwards

wpa_supplicant shows same behavior. The following block repeats:

wlxf0b014915e5b: Add radio work 'scan'@0x55ee243407b0
wlxf0b014915e5b: First radio work item in the queue - schedule start immediately
wlxf0b014915e5b: Starting radio work 'scan'@0x55ee243407b0 after 0.000126 second wait
wlxf0b014915e5b: nl80211: scan request
nl80211: Scan SSID 
nl80211: Scan SSID fouLRp3Kwu
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Event message available
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlxf0b014915e5b
wlxf0b014915e5b: nl80211: Scan trigger
wlxf0b014915e5b: Event SCAN_STARTED (47) received
wlxf0b014915e5b: Own scan request started a scan in 0.000054 seconds
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0
nl80211: Event message available
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlxf0b014915e5b
wlxf0b014915e5b: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan probed for SSID 'fouLRp3Kwu'
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472 2484 5180 5200 5220 5240 5260 5280 5300 5320 5500 5520 5540 5560 5580 5600 5620 5640 5660 5680 5700 5745 5765 5785 5805 5825
wlxf0b014915e5b: Event SCAN_RESULTS (3) received
wlxf0b014915e5b: Scan completed in 5.717135 seconds
nl80211: Received scan results (25 BSSes)
wlxf0b014915e5b: BSS: Start scan result update 24
wlxf0b014915e5b: BSS: Add new id 53 BSSID e0:28:6d:4c:7f:98 SSID 'K.72' freq 2412
dbus: Register BSS object '/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/53'
wlxf0b014915e5b: BSS: Add new id 54 BSSID 44:fe:3b:da:af:7c SSID 'WLAN-J98RMN' freq 2412
dbus: Register BSS object '/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/54'
wlxf0b014915e5b: BSS: Add new id 55 BSSID 00:e0:20:81:0b:0f SSID 'FRITZ!Box 6490 Cable_Ext' freq 2437
dbus: Register BSS object '/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/55'
wlxf0b014915e5b: BSS: Remove id 52 BSSID 4a:67:51:42:5c:83 SSID 'Vodafone Homespot' due to no match in scan
dbus: Unregister BSS object '/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/52'
BSS: last_scan_res_used=25/64
wlxf0b014915e5b: Scan-only results received
wlxf0b014915e5b: Radio work 'scan'@0x55ee243407b0 done in 5.718477 seconds
wlxf0b014915e5b: radio_work_free('scan'@0x55ee243407b0): num_active_works --> 0
RTM_NEWLINK: ifi_index=3 ifname= wext ifi_family=0 ifi_flags=0x1003 ([UP])
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/1
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/0
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/2
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/3
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/32
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/7
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/9
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/12
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/11
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/10
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/4
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/8
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/22
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/6
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/17
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/16
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/15
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/38
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/18
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/25
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/39
dbus: flush_object_timeout_handler: Timeout - sending changed properties of object /fi/w1/wpa_supplicant1/Interfaces/0/BSSs/42
dbus: org.freedesktop.DBus.Properties.GetAll (/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/53) [s]
dbus: org.freedesktop.DBus.Properties.GetAll (/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/54) [s]
dbus: org.freedesktop.DBus.Properties.GetAll (/fi/w1/wpa_supplicant1/Interfaces/0/BSSs/55) [s]