FILS: Claim FILS capability only if driver supports it
"GET_CAPABILITY fils" used to return "FILS" based on wpa_supplicant configuration. This can be made more useful by checking both for wpa_supplicant and driver support for FILS. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ff338fab92
commit
061dac1d3c
2 changed files with 4 additions and 1 deletions
|
@ -1311,6 +1311,8 @@ struct wpa_driver_capa {
|
||||||
#define WPA_DRIVER_FLAGS_FULL_AP_CLIENT_STATE 0x0000010000000000ULL
|
#define WPA_DRIVER_FLAGS_FULL_AP_CLIENT_STATE 0x0000010000000000ULL
|
||||||
/** Driver supports P2P Listen offload */
|
/** Driver supports P2P Listen offload */
|
||||||
#define WPA_DRIVER_FLAGS_P2P_LISTEN_OFFLOAD 0x0000020000000000ULL
|
#define WPA_DRIVER_FLAGS_P2P_LISTEN_OFFLOAD 0x0000020000000000ULL
|
||||||
|
/** Driver supports FILS */
|
||||||
|
#define WPA_DRIVER_FLAGS_SUPPORT_FILS 0x0000040000000000ULL
|
||||||
u64 flags;
|
u64 flags;
|
||||||
|
|
||||||
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
|
#define FULL_AP_CLIENT_STATE_SUPP(drv_flags) \
|
||||||
|
|
|
@ -4048,7 +4048,8 @@ static int wpa_supplicant_ctrl_iface_get_capability(
|
||||||
#endif /* CONFIG_ACS */
|
#endif /* CONFIG_ACS */
|
||||||
|
|
||||||
#ifdef CONFIG_FILS
|
#ifdef CONFIG_FILS
|
||||||
if (os_strcmp(field, "fils") == 0) {
|
if (os_strcmp(field, "fils") == 0 &&
|
||||||
|
(wpa_s->drv_flags & WPA_DRIVER_FLAGS_SUPPORT_FILS)) {
|
||||||
res = os_snprintf(buf, buflen, "FILS");
|
res = os_snprintf(buf, buflen, "FILS");
|
||||||
if (os_snprintf_error(buflen, res))
|
if (os_snprintf_error(buflen, res))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue