Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72c45955 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wifi: cfg80211: avoid nontransmitted BSS list corruption"

parents d67ce86e 060227f1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -384,6 +384,14 @@ cfg80211_add_nontrans_list(struct cfg80211_bss *trans_bss,

	rcu_read_unlock();

	/* This is a bit weird - it's not on the list, but already on another
	 * one! The only way that could happen is if there's some BSSID/SSID
	 * shared by multiple APs in their multi-BSSID profiles, potentially
	 * with hidden SSID mixed in ... ignore it.
	 */
	if (!list_empty(&nontrans_bss->nontrans_list))
		return -EINVAL;

	/* add to the list */
	list_add_tail(&nontrans_bss->nontrans_list, &trans_bss->nontrans_list);
	return 0;