History

mac80211: HE STA disassoc due to QOS NULL not sent

In case of HE AP-STA link, ieee80211_send_nullfunc() will not send the QOS NULL packet to check if AP is still associated. In this case, probe_send_count will be non-zero and ieee80211_sta_work() will later disassociate the AP, even though no packet was ever sent. Fix this by decrementing probe_send_count and not calling ieee80211_send_nullfunc() in case of HE link, so that we still wait for some time for the AP beacon to reappear and don't disconnect right away.

Shay Bar committed 7 years ago

Commit f39b07f1 parent 1ced1691 file · +4 −1Browse files

Unified · Split

net/mac80211/mlme.c+4−1
@@ -2512,7 +2512,10 @@ static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata) · 2511 unmodified lines
25122512
25132513 if (ieee80211_hw_check(&sdata->local->hw, REPORTS_TX_ACK_STATUS)) {
25142514 ifmgd->nullfunc_failed = false;
2515− ieee80211_send_nullfunc(sdata->local, sdata, false);
2515+ if (!(ifmgd->flags & IEEE80211_STA_DISABLE_HE))
2516+ ifmgd->probe_send_count--;
2517+ else
2518+ ieee80211_send_nullfunc(sdata->local, sdata, false);
25162519 } else {
25172520 int ssid_len;
25182521

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t