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

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

wl12xx: consider bss_conf->idle instead of hw->conf.flags



On disassociation, check only whether the current vif
is idle, instead of checking whether the device is idle.

Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 349345a4
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -3901,7 +3901,6 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,


			/* restore the bssid filter and go to dummy bssid */
			/* restore the bssid filter and go to dummy bssid */
			if (was_assoc) {
			if (was_assoc) {
				u32 conf_flags = wl->hw->conf.flags;
				/*
				/*
				 * we might have to disable roc, if there was
				 * we might have to disable roc, if there was
				 * no IF_OPER_UP notification.
				 * no IF_OPER_UP notification.
@@ -3924,7 +3923,7 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl,
				}
				}


				wl1271_unjoin(wl, wlvif);
				wl1271_unjoin(wl, wlvif);
				if (!(conf_flags & IEEE80211_CONF_IDLE))
				if (!bss_conf->idle)
					wl12xx_start_dev(wl, wlvif);
					wl12xx_start_dev(wl, wlvif);
			}
			}
		}
		}