2014-04-07 14:04 GMT+02:00 voncken <cedric.voncke@xxxxxxxxx>: >> > >> > I don't know how fix this issue. For the moment I disable the >> > channel when the NL80211_RRF_DFS is set (in map_regdom_flags). >> > >> >> This seems like a bug in ath9k (init.c) driver, when register interface >> combinations. >> Seems RADAR combination should be registered only in case when >> ATH9K_DFS_CERTIFIED is set. > > Thanks for the answer. > > The ATH9K_HW_CAP_DFS is set in hw.c only if the function > ath9k_hw_dfs_tested return true. > > In the ath9k/init.c, the function ath9k_set_hw_capab do not set any > flags in hw->flags relevant to DFS. > > I'm looking for a similar line > if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_DFS) > hw->flags |= IEEE80211_HW_xxxx; > > But I don't found. > > I'm looking in net/mac80211.h the IEEE80211 flag relevant to DFS (to > add the test in ath9k init), but I don't found it. > > It seem the mac80211 do not know the hardware capability to detect > radar. > Driver set this in iface_combinations (check): .radar_detect_widths = BIT(NL80211_CHAN_WIDTH_20_NOHT) | BIT(NL80211_CHAN_WIDTH_20), BR Janusz -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html