On Mon, Mar 04, 2019 at 12:08:48PM +0100, Lorenzo Bianconi wrote: > > How this should be done ? Is sufficient to check IEEE80211_CHAN_RADAR > > and mt76_is_usb() on set channel end return -EINVAL error ? Or different > > way ? > > Re-reading my email I was not so clear, sorry. I mean we need to clear > radar_detect_widths for mt76_usb or as suggested by Felix to have a new > iface_combinations for mt76_usb where we do not set radar_detect_widths This seems to be already handled by mac80211 if we do not set iface combinations. On channels like this: Frequencies: * 5180 MHz [36] (23.0 dBm) * 5200 MHz [40] (23.0 dBm) * 5220 MHz [44] (23.0 dBm) * 5240 MHz [48] (23.0 dBm) * 5260 MHz [52] (23.0 dBm) (radar detection) DFS state: usable (for 37 sec) * 5280 MHz [56] (23.0 dBm) (radar detection) DFS state: usable (for 37 sec) * 5300 MHz [60] (23.0 dBm) (radar detection) DFS state: usable (for 37 sec) * 5320 MHz [64] (23.0 dBm) (radar detection) Hostap fails on channel=52 with error: Mar 04 13:39:33 dhcp-27-155.brq.redhat.com hostapd[10902]: wlan0: IEEE 802.11 Configured channel (52) not found from the channel list of current mode (2) IEEE 802.11a Mar 04 13:39:33 dhcp-27-155.brq.redhat.com hostapd[10902]: channel [4] (52) is disabled for use in AP mode, flags: 0x79 RADAR On channel=36 hostapd succeed to start. Stanislaw