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

Commit fa287b8f authored by Eliad Peller's avatar Eliad Peller Committed by Luciano Coelho
Browse files

wl12xx: don't join upon disassociation



wl12xx "rejoins" upon every BSS_CHANGED_BSSID notification.
However, there is no need to rejoin after disassociation, so just
filter out the case when the new bssid is 00:00:00:00:00:00.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 2354b9fd
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -2266,6 +2266,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
	    memcmp(wl->bssid, bss_conf->bssid, ETH_ALEN)) {
		memcpy(wl->bssid, bss_conf->bssid, ETH_ALEN);

		if (!is_zero_ether_addr(wl->bssid)) {
			ret = wl1271_cmd_build_null_data(wl);
			if (ret < 0)
				goto out;
@@ -2280,6 +2281,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
			/* Need to update the BSSID (for filtering etc) */
			do_join = true;
		}
	}

	if ((changed & BSS_CHANGED_ASSOC)) {
		if (bss_conf->assoc) {