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

Commit 2178188b authored by Hamad Kadmany's avatar Hamad Kadmany
Browse files

wil6210: propagate disconnect reason



When disconnect is requested propagate disconnect
reason code to firmware so that it could be
reported to the peer

Change-Id: I2442e3e5dd094c81181a77ddeabab39c0849a1cc
Signed-off-by: default avatarHamad Kadmany <hkadmany@codeaurora.org>
parent 6f7c8677
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -940,12 +940,11 @@ static int wil_cfg80211_del_station(struct wiphy *wiphy,
{
	struct wil6210_priv *wil = wiphy_to_wil(wiphy);

	wil_dbg_misc(wil, "%s(%pM, reason=%d)\n", __func__, (u8 *)params->mac,
		     WLAN_REASON_UNSPECIFIED);
	wil_dbg_misc(wil, "%s(%pM, reason=%d)\n", __func__, params->mac,
		     params->reason_code);

	mutex_lock(&wil->mutex);
	wil6210_disconnect(wil, (u8 *)params->mac, WLAN_REASON_UNSPECIFIED,
			   false);
	wil6210_disconnect(wil, params->mac, params->reason_code, false);
	mutex_unlock(&wil->mutex);

	return 0;