mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
UPSTREAM: wifi: cfg80211: fix assoc response warning on failed links
The warning here shouldn't be done before we even set the bss field (or should've used the input data). Move the assignment before the warning to fix it. We noticed this now because of Wen's bugfix, where the bug fixed there had previously hidden this other bug. Bug: 254441685 Fixes:53ad07e982("wifi: cfg80211: support reporting failed links") Signed-off-by: Johannes Berg <johannes.berg@intel.com> (cherry picked from commitc434b2be2d) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: Ibc3b59e9c61b74a9dbc25ddb2ee75f220bd0f5ae
This commit is contained in:
committed by
Treehugger Robot
parent
7f2d1a477c
commit
30c4764908
@@ -43,10 +43,11 @@ void cfg80211_rx_assoc_resp(struct net_device *dev,
|
||||
|
||||
for (link_id = 0; link_id < ARRAY_SIZE(data->links); link_id++) {
|
||||
cr.links[link_id].status = data->links[link_id].status;
|
||||
cr.links[link_id].bss = data->links[link_id].bss;
|
||||
|
||||
WARN_ON_ONCE(cr.links[link_id].status != WLAN_STATUS_SUCCESS &&
|
||||
(!cr.ap_mld_addr || !cr.links[link_id].bss));
|
||||
|
||||
cr.links[link_id].bss = data->links[link_id].bss;
|
||||
if (!cr.links[link_id].bss)
|
||||
continue;
|
||||
cr.links[link_id].bssid = data->links[link_id].bss->bssid;
|
||||
|
||||
Reference in New Issue
Block a user