MLD: Ensure link_bssid array has space for sentinel
The consumer of the link_bssid array assumes it is a NULL terminated
array of BSSIDs. As such, add one to the maximum number of links to
ensure that there is always a sentinel value.
Fixes: 5af986c75a
("MLD: Also mark links as failed after association failure")
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
This commit is contained in:
parent
cf3883f3d1
commit
7bcede06e0
1 changed files with 1 additions and 1 deletions
|
@ -5637,7 +5637,7 @@ static void wpas_event_assoc_reject(struct wpa_supplicant *wpa_s,
|
||||||
const u8 *bssid = data->assoc_reject.bssid;
|
const u8 *bssid = data->assoc_reject.bssid;
|
||||||
struct ieee802_11_elems elems;
|
struct ieee802_11_elems elems;
|
||||||
struct ml_sta_link_info ml_info[MAX_NUM_MLD_LINKS];
|
struct ml_sta_link_info ml_info[MAX_NUM_MLD_LINKS];
|
||||||
const u8 *link_bssids[MAX_NUM_MLD_LINKS];
|
const u8 *link_bssids[MAX_NUM_MLD_LINKS + 1];
|
||||||
#ifdef CONFIG_MBO
|
#ifdef CONFIG_MBO
|
||||||
struct wpa_bss *reject_bss;
|
struct wpa_bss *reject_bss;
|
||||||
#endif /* CONFIG_MBO */
|
#endif /* CONFIG_MBO */
|
||||||
|
|
Loading…
Reference in a new issue