Skip to content

mac80211: Trigger disconnect for STA during recovery

Youghandhar Chintala ath10k linux-wireless lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cfg80211: Add wiphy flag to trigger STA disconnect after hardware restartinclude/net/cfg80211.h+4 -00 replies
1/3cfg80211: Add wiphy flag to trigger STA disconnect after hardware restartinclude/net/cfg80211.h+4 -02 replies
2/3mac80211: Add support to trigger sta disconnect on hardware restartnet/mac80211/ieee80211_i.h net/mac80211/mlme.c net/mac80211/util.c+31 -312 replies
3/3ath10k: Set wiphy flag to trigger sta disconnect on hardware restartdrivers/net/wireless/ath/ath10k/core.c drivers/net/wireless/ath/ath10k/hw.h drivers/net/wireless/ath/ath10k/mac.c+21 -03 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAbhishek Kumar
1/3R-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] mac80211: Trigger disconnect for STA during recovery

From: Rakesh Pillai <[email protected]>

Currently in case of target hardware restart ,we just reconfig and re-enable the security keys and enable the network queues to start data traffic back from where it was interrupted.

Many ath10k wifi chipsets have sequence numbers for the data packets assigned by firmware and the mac sequence number will restart from zero after target hardware restart leading to mismatch in the sequence number expected by the remote peer vs the sequence number of the frame sent by the target firmware.

This mismatch in sequence number will cause out-of-order packets on the remote peer and all the frames sent by the device are dropped until we reach the sequence number which was sent before we restarted the target hardware

In order to fix this, we trigger a disconnect in case of hardware restart. After this there will be a fresh connection and thereby avoiding the dropping of frames by remote peer.

The right fix would be to pull the entire data path into the host which is not feasible or would need lots of complex/inefficient datapath changes.

Rakesh Pillai (1):
ath10k: Set wiphy flag to trigger sta disconnect on hardware restart

Youghandhar Chintala (2):
cfg80211: Add wiphy flag to trigger STA disconnect after hardware
restart
mac80211: Add support to trigger sta disconnect on hardware restart

 drivers/net/wireless/ath/ath10k/core.c | 15 +++++++++++++++
 drivers/net/wireless/ath/ath10k/hw.h   |  3 +++
 drivers/net/wireless/ath/ath10k/mac.c  |  3 +++
 include/net/cfg80211.h                 |  4 ++++
 net/mac80211/ieee80211_i.h             |  3 +++
 net/mac80211/mlme.c                    |  9 +++++++++
 net/mac80211/util.c                    | 22 +++++++++++++++++++---
 7 files changed, 56 insertions(+), 3 deletions(-)
Signature · 7 lines
2.7.4


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k