From: Jeff Johnson <quic_jjohnson@quicinc.com>
To: Youghandhar Chintala <youghand@codeaurora.org>,
<ath10k@lists.infradead.org>
Cc: <linux-wireless@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<pillair@codeaurora.org>, <dianders@chromium.org>,
<kuabhs@chromium.org>, <briannorris@chromium.org>,
<mpubbise@codeaurora.org>
Subject: Re: [PATCH v4 1/2] mac80211: Add support to trigger sta disconnect on hardware restart
Date: Thu, 3 Mar 2022 08:44:51 -0800 [thread overview]
Message-ID: <7ac0be6d-35f1-cab3-0ab3-c06367a28ed1@quicinc.com> (raw)
In-Reply-To: <20220303115541.15892-2-youghand@codeaurora.org>
On 3/3/2022 3:55 AM, Youghandhar Chintala wrote:
> 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 sta disconnect, in case of target
> hw 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 changes and
> will still be inefficient.
>
> Tested on ath10k using WCN3990, QCA6174
>
> Signed-off-by: Youghandhar Chintala <youghand@codeaurora.org>
> ---
> include/net/mac80211.h | 11 +++++++++++
> net/mac80211/ieee80211_i.h | 3 +++
> net/mac80211/mlme.c | 12 ++++++++++++
> net/mac80211/util.c | 33 ++++++++++++++++++++++++++++++---
> 4 files changed, 56 insertions(+), 3 deletions(-)
>
> diff --git a/include/net/mac80211.h b/include/net/mac80211.h
> index bd6912d0292b..0773c50fa182 100644
> --- a/include/net/mac80211.h
> +++ b/include/net/mac80211.h
> @@ -6064,6 +6064,17 @@ void ieee80211_disconnect(struct ieee80211_vif *vif, bool reconnect);
> */
> void ieee80211_resume_disconnect(struct ieee80211_vif *vif);
>
> +/**
> + * ieee80211_hw_restart_disconnect - disconnect from AP after
> + * hardware restart
nits:
remove excess space in "hardware restart"
"Do not leave a blank line between the function description and the
arguments" per
<https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#function-documentation>
(I see that there is quite a mixture of compliant and non-compliant
kernel-doc in this file)
next prev parent reply other threads:[~2022-03-03 16:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-03 11:55 [PATCH v4 0/2] mac80211: Trigger disconnect for STA during target " Youghandhar Chintala
2022-03-03 11:55 ` [PATCH v4 1/2] mac80211: Add support to trigger sta disconnect on " Youghandhar Chintala
2022-03-03 16:44 ` Jeff Johnson [this message]
2022-03-03 11:55 ` [PATCH v4 2/2] ath10k:trigger " Youghandhar Chintala
2022-03-03 16:56 ` Jeff Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ac0be6d-35f1-cab3-0ab3-c06367a28ed1@quicinc.com \
--to=quic_jjohnson@quicinc.com \
--cc=ath10k@lists.infradead.org \
--cc=briannorris@chromium.org \
--cc=dianders@chromium.org \
--cc=kuabhs@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mpubbise@codeaurora.org \
--cc=pillair@codeaurora.org \
--cc=youghand@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®