AP MLD: Do not access WPA authenticator object if not valid
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
21e8fcc807
commit
ecd9ea0c8a
1 changed files with 4 additions and 2 deletions
|
@ -1538,7 +1538,8 @@ static int hostapd_wpa_auth_get_ml_rsn_info(void *ctx,
|
|||
|
||||
if (!iface->bss[0]->conf->mld_ap ||
|
||||
hapd->conf->mld_id != iface->bss[0]->conf->mld_id ||
|
||||
link_id != iface->bss[0]->mld_link_id)
|
||||
link_id != iface->bss[0]->mld_link_id ||
|
||||
!iface->bss[0]->wpa_auth)
|
||||
continue;
|
||||
|
||||
wpa_auth_ml_get_rsn_info(iface->bss[0]->wpa_auth,
|
||||
|
@ -1580,7 +1581,8 @@ static int hostapd_wpa_auth_get_ml_key_info(void *ctx,
|
|||
|
||||
if (!iface->bss[0]->conf->mld_ap ||
|
||||
hapd->conf->mld_id != iface->bss[0]->conf->mld_id ||
|
||||
link_id != iface->bss[0]->mld_link_id)
|
||||
link_id != iface->bss[0]->mld_link_id ||
|
||||
!iface->bss[0]->wpa_auth)
|
||||
continue;
|
||||
|
||||
wpa_auth_ml_get_key_info(iface->bss[0]->wpa_auth,
|
||||
|
|
Loading…
Reference in a new issue