nl80211: Report background radar/CAC detection capability
Report background radar/CAC detection capability if supported by the underlying driver/hardware. Tested-by: Owen Peng <owen.peng@mediatek.com> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
This commit is contained in:
parent
0a73649b64
commit
203a027b28
2 changed files with 6 additions and 0 deletions
|
@ -2029,6 +2029,8 @@ struct wpa_driver_capa {
|
|||
#define WPA_DRIVER_FLAGS2_AP_SME 0x0000000000000100ULL
|
||||
/** Driver handles SA Query procedures in AP mode */
|
||||
#define WPA_DRIVER_FLAGS2_SA_QUERY_OFFLOAD_AP 0x0000000000000200ULL
|
||||
/** Driver supports background radar/CAC detection */
|
||||
#define WPA_DRIVER_RADAR_BACKGROUND 0x0000000000000400ULL
|
||||
u64 flags2;
|
||||
|
||||
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
|
||||
|
|
|
@ -665,6 +665,10 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info,
|
|||
if (ext_feature_isset(ext_features, len,
|
||||
NL80211_EXT_FEATURE_OPERATING_CHANNEL_VALIDATION))
|
||||
capa->flags2 |= WPA_DRIVER_FLAGS2_OCV;
|
||||
|
||||
if (ext_feature_isset(ext_features, len,
|
||||
NL80211_EXT_FEATURE_RADAR_BACKGROUND))
|
||||
capa->flags2 |= WPA_DRIVER_RADAR_BACKGROUND;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue