nl80211: Add a capability flag for RSN overriding
Add a new capability flag based on the nl80211 feature advertisement for RSN overriding support. Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
parent
6fad7224be
commit
341bcb2b5c
3 changed files with 11 additions and 0 deletions
|
@ -2330,6 +2330,8 @@ struct wpa_driver_capa {
|
|||
#define WPA_DRIVER_FLAGS2_SAE_OFFLOAD_AP 0x0000000000100000ULL
|
||||
/** Driver supports TWT responder in HT and VHT modes */
|
||||
#define WPA_DRIVER_FLAGS2_HT_VHT_TWT_RESPONDER 0x0000000000200000ULL
|
||||
/** Driver supports RSN override elements */
|
||||
#define WPA_DRIVER_FLAGS2_RSN_OVERRIDE_STA 0x0000000000400000ULL
|
||||
u64 flags2;
|
||||
|
||||
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
|
||||
|
|
|
@ -9899,6 +9899,9 @@ static int nl80211_set_param(void *priv, const char *param)
|
|||
WPA_DRIVER_FLAGS2_SEC_LTF_AP;
|
||||
}
|
||||
|
||||
if (os_strstr(param, "rsn_override_in_driver=1"))
|
||||
drv->capa.flags2 |= WPA_DRIVER_FLAGS2_RSN_OVERRIDE_STA;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1443,6 +1443,12 @@ static void qca_nl80211_get_features(struct wpa_driver_nl80211_data *drv)
|
|||
drv->qca_ap_allowed_freqs = 1;
|
||||
if (check_feature(QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER, &info))
|
||||
drv->capa.flags2 |= WPA_DRIVER_FLAGS2_HT_VHT_TWT_RESPONDER;
|
||||
if (check_feature(QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA, &info)) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"The driver supports RSN overriding in STA mode");
|
||||
drv->capa.flags2 |= WPA_DRIVER_FLAGS2_RSN_OVERRIDE_STA;
|
||||
}
|
||||
|
||||
os_free(info.flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue