Re: [PATCH] hw_features: clean center freq for falling back ht40 channels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 The scenario is very specific: I have both ieee80211n=1 and
ieee80211ac=1 also with ht_capab and vht_capab both set. Here is some
log;

 ======
 nl80211: Supported cipher 00-0f-ac:1
 nl80211: Supported cipher 00-0f-ac:5
 nl80211: Supported cipher 00-0f-ac:2
 nl80211: Supported cipher 00-0f-ac:4
 nl80211: Supported cipher 00-0f-ac:6
 nl80211: Using driver-based off-channel TX
 nl80211: Driver-advertised extended capabilities (default) -
hexdump(len=8): 04 00 00 00 00 00 00 40
 nl80211: Driver-advertised extended capabilities mask (default) -
hexdump(len=8): 04 00 00 00 00 00 0 40
 nl80211: interface wlp2s0 in phy phy0
 nl80211: Set mode ifindex 4 iftype 3 (AP)
 nl80211: Setup AP(wlp2s0) - device_ap_sme=0 use_monitor=0
 nl80211: Subscribe to mgmt frames with AP handle 0x2094cd0
 nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ)
nl_handle=0x2094cd0 match=
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=04
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=0501
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=0503
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=0504
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=06
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=08
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=09
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=0a
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=11
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=12
 nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0x2094cd0 match=7f
 rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
 nl80211: Add own interface ifindex 4 (ifidx_reason -1)
 nl80211: if_indices[16]: 4(-1)
 phy: phy0
 BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
 wlp2s0: interface state UNINITIALIZED->COUNTRY_UPDATE
 Previous country code US, new country code US
 nl80211: Regulatory information - country=US (DFS-FCC)
 nl80211: 2402-2472 @ 40 MHz 30 mBm
 nl80211: 5170-5250 @ 80 MHz 17 mBm
 nl80211: 5250-5330 @ 80 MHz 23 mBm (DFS)
 nl80211: 5735-5835 @ 80 MHz 30 mBm
 nl80211: 57240-63720 @ 2160 MHz 40 mBm
 Allowed channel: mode=2 chan=36 freq=5180 MHz max_tx_power=17 dBm
 Allowed channel: mode=2 chan=40 freq=5200 MHz max_tx_power=17 dBm
 Allowed channel: mode=2 chan=44 freq=5220 MHz max_tx_power=17 dBm
 Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=17 dBm
 Allowed channel: mode=2 chan=52 freq=5260 MHz max_tx_power=23 dBm
(DFS state = usable)
 Allowed channel: mode=2 chan=56 freq=5280 MHz max_tx_power=23 dBm
(DFS state = usable)
 Allowed channel: mode=2 chan=60 freq=5300 MHz max_tx_power=23 dBm
(DFS state = usable)
 Allowed channel: mode=2 chan=64 freq=5320 MHz max_tx_power=23 dBm
(DFS state = usable)
 Allowed channel: mode=2 chan=149 freq=5745 MHz max_tx_power=30 dBm
 Allowed channel: mode=2 chan=153 freq=5765 MHz max_tx_power=30 dBm
 Allowed channel: mode=2 chan=157 freq=5785 MHz max_tx_power=30 dBm
 Allowed channel: mode=2 chan=161 freq=5805 MHz max_tx_power=30 dBm
 Allowed channel: mode=2 chan=165 freq=5825 MHz max_tx_power=30 dBm
 Disable HT capability [DSSS_CCK-40] on 5 GHz band
 hw vht capab: 0x338001b2, conf vht capab: 0x338000b2
 wlp2s0: interface state COUNTRY_UPDATE->HT_SCAN
 Scan for neighboring BSSes prior to enabling 40 MHz channel
 40 MHz affected channel range: [5795,5835] MHz
 wlp2s0: nl80211: scan request
 nl80211: Passive scan requested
 nl80211: Scan frequency 5805 MHz
 nl80211: Scan frequency 5825 MHz
 Scan requested (ret=0) - scan timeout 10 seconds
 Interface initialization will be completed in a callback
 ctrl_iface not configured!
 RTM_NEWLINK: ifi_index=4 ifname=wlp2s0 operstate=2 linkmode=0
ifi_family=0 ifi_flags=0x1002 ()
 nl80211: Ignore interface down event since interface wlp2s0 is up
 RTM_NEWLINK: ifi_index=4 ifname=wlp2s0 operstate=2 linkmode=0
ifi_family=0 ifi_flags=0x1002 ()
 nl80211: Ignore interface down event since interface wlp2s0 is up
 RTM_NEWLINK: ifi_index=4 ifname=wlp2s0 operstate=2 linkmode=0
ifi_family=0 ifi_flags=0x1003 ([UP])
 nl80211: Event message available
 nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlp2s0
 wlp2s0: nl80211: Scan trigger
 wlp2s0: Event SCAN_STARTED (47) received
 Unknown event 47
 RTM_NEWLINK: ifi_index=4 ifname=wlp2s0 wext ifi_family=0
ifi_flags=0x1003 ([UP])
 nl80211: Event message available
 nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlp2s0
 wlp2s0: nl80211: New scan results available
 nl80211: Scan included frequencies: 5805 5825
wlp2s0: Event SCAN_RESULTS (3) received
 nl80211: Received scan results (0 BSSes)
 HT40: control channel: 161  secondary channel: 165
 HT40 channel pair (161, 165) not allowed
 Fallback to 20 MHz
 Completing interface initialization
 Mode: IEEE 802.11a  Channel: 161  Frequency: 5805 MHz
 DFS chan_idx seems wrong; num-ch: 25 ch-no: -6 conf-ch-no: 161 11n: 1
sec-ch: 0 vht-oper-width: 1
 Available channel: 36
 Available channel: 40
 Available channel: 44
 Available channel: 48
 Available channel: 52
 Available channel: 56
 Available channel: 60
 Available channel: 64
 Available channel: 100
 Available channel: 104
 Available channel: 108
 Available channel: 112
 Available channel: 116
Available channel: 120
 Available channel: 124
 Available channel: 128
 Available channel: 132
 Available channel: 136
Available channel: 140
 Available channel: 144
 Available channel: 149
 Available channel: 153
 Available channel: 157
 Available channel: 161
 Available channel: 165
Interface initialization failed
 wlp2s0: interface state HT_SCAN->DISABLED
 wlp2s0: AP-DISABLED
 hostapd_interface_deinit_free(0x2091fa0)
 hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
 hostapd_interface_deinit(0x2091fa0)
 wlp2s0: interface state DISABLED->DISABLED
 hostapd_bss_deinit: deinit bss wlp2s0
 wlp2s0: Deauthenticate all stations
 nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0
offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3
 nl80211: send_mlme -> send_frame
 nl80211: send_frame - Use bss->freq=0
 nl80211: send_frame -> send_frame_cmd
 nl80211: CMD_FRAME freq=0 wait=0 no_cck=0 no_ack=0 offchanok=0
 CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 6c 98 eb
40 d6 30 6c 98 eb 40 d6 30 00 00 03 00
 nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)
 wlp2s0: AP-DISABLED
 hostapd_cleanup(hapd=0x2093b80 (wlp2s0))
 wlp2s0: CTRL-EVENT-TERMINATING
 ========


 Thanks,

 Eduardo

> On 29 January 2017 at 23:46, Jouni Malinen <j@xxxxx> wrote:
>>
>> On Tue, Jan 17, 2017 at 11:59:03AM +0100, Eduardo Abinader wrote:
>> > Some channels fail to be set, when falling back to 20MHz, due to
>> > remaining info of center freq. As we are going 20 MHz, reset the
>> > info as well.
>>
>> Do you happen to have a debug log that would show an issue with the
>> current implementation or a description of a case where leaving the VHT
>> center frequencies set breaks something? I would like to add a hwsim
>> test case to cover that and could not hit a case that would display such
>> behavior.
>>
>> --
>> Jouni Malinen                                            PGP id EFC895FA
>
>

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux