[PW_SID:1136904] netdev: Fix premature ECSA channel switch timeout for mt7925 - #510
[PW_SID:1136904] netdev: Fix premature ECSA channel switch timeout for mt7925#510IWDTestBot wants to merge 1 commit into
Conversation
The mt7925 cards get stuck and disconnect during Extended Channel Switch Announcement (ECSA) events because the kernel considers them stuck. This occurs because the kernel sends an imminent channel switch notification (NL80211_CMD_CH_SWITCH_NOTIFY with the NL80211_ATTR_CH_SWITCH_COUNT attribute present) prior to the physical switch. iwd was previously ignoring the countdown attribute and immediately initiating an active scan to re-query the AP. Sending a scan command while the firmware is trying to tune the radio causes the mt7925 firmware to time out. This patch adds a check to see if the countdown attribute is present for mt7925 interfaces. If it is, we wait for the second notification (which omits the count) that confirms the switch is physically completed before proceeding with the internal state updates. Signed-off-by: Arpan <arpanpramanik015@gmail.com>
|
Fetch PR Prep - Setup ELL Make Distcheck Build - Configure Make Check Make Check w/Valgrind Incremental Build with patches |
|
Fetch PR GitLint Prep - Setup ELL Make Distcheck Build - Configure Make Check Make Check w/Valgrind Incremental Build with patches Autotest Runner Clang Build |
The mt7925 cards get stuck and disconnect during Extended Channel Switch
Announcement (ECSA) events because the kernel considers them stuck.
This occurs because the kernel sends an imminent channel switch
notification (NL80211_CMD_CH_SWITCH_NOTIFY with the
NL80211_ATTR_CH_SWITCH_COUNT attribute present) prior to the physical
switch. iwd was previously ignoring the countdown attribute and
immediately initiating an active scan to re-query the AP. Sending a
scan command while the firmware is trying to tune the radio causes the
mt7925 firmware to time out.
This patch adds a check to see if the countdown attribute is present for
mt7925 interfaces. If it is, we wait for the second notification (which
omits the count) that confirms the switch is physically completed before
proceeding with the internal state updates.
Signed-off-by: Arpan arpanpramanik015@gmail.com
src/netdev.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)