linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND
@ 2021-10-27 23:25 Bryan O'Donoghue
  2021-11-01 14:19 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Bryan O'Donoghue @ 2021-10-27 23:25 UTC (permalink / raw)
  To: kvalo, linux-wireless, wcn36xx
  Cc: linux-arm-msm, loic.poulain, benl, bryan.odonoghue

Firmware can trigger a missed beacon indication, this is not the same as a
lost signal.

Flag to Linux the missed beacon and let the WiFi stack decide for itself if
the link is up or down by sending its own probe to determine this.

We should only be signalling the link is lost when the firmware indicates

Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
---
 drivers/net/wireless/ath/wcn36xx/smd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/wcn36xx/smd.c b/drivers/net/wireless/ath/wcn36xx/smd.c
index 599cb220b150e..aee4123035d71 100644
--- a/drivers/net/wireless/ath/wcn36xx/smd.c
+++ b/drivers/net/wireless/ath/wcn36xx/smd.c
@@ -2647,7 +2647,7 @@ static int wcn36xx_smd_missed_beacon_ind(struct wcn36xx *wcn,
 			wcn36xx_dbg(WCN36XX_DBG_HAL, "beacon missed bss_index %d\n",
 				    tmp->bss_index);
 			vif = wcn36xx_priv_to_vif(tmp);
-			ieee80211_connection_loss(vif);
+			ieee80211_beacon_loss(vif);
 		}
 		return 0;
 	}
@@ -2662,7 +2662,7 @@ static int wcn36xx_smd_missed_beacon_ind(struct wcn36xx *wcn,
 			wcn36xx_dbg(WCN36XX_DBG_HAL, "beacon missed bss_index %d\n",
 				    rsp->bss_index);
 			vif = wcn36xx_priv_to_vif(tmp);
-			ieee80211_connection_loss(vif);
+			ieee80211_beacon_loss(vif);
 			return 0;
 		}
 	}
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND
  2021-10-27 23:25 [PATCH] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Bryan O'Donoghue
@ 2021-11-01 14:19 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2021-11-01 14:19 UTC (permalink / raw)
  To: Bryan O'Donoghue
  Cc: linux-wireless, wcn36xx, linux-arm-msm, loic.poulain, benl,
	bryan.odonoghue

Bryan O'Donoghue <bryan.odonoghue@linaro.org> wrote:

> Firmware can trigger a missed beacon indication, this is not the same as a
> lost signal.
> 
> Flag to Linux the missed beacon and let the WiFi stack decide for itself if
> the link is up or down by sending its own probe to determine this.
> 
> We should only be signalling the link is lost when the firmware indicates
> 
> Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath-next branch of ath.git, thanks.

588b45c88ae1 wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/20211027232529.657764-1-bryan.odonoghue@linaro.org/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-01 14:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 23:25 [PATCH] wcn36xx: Indicate beacon not connection loss on MISSED_BEACON_IND Bryan O'Donoghue
2021-11-01 14:19 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).