mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-05 21:31:40 +00:00
ieee80211_report_used_skb of mac80211 use the frame_control of ieee80211_hdr in sk_buff and indicate it to another function ieee80211_mgd_conn_tx_status, then it queue work ieee80211_sta_work, but ieee80211_is_auth(fc) in ieee80211_sta_work check fail when the authentication has transmitted by ath10k. When the ath10k report it with HTT_TX_COMPL_STATE_DISCARD, it will be set without flag IEEE80211_TX_STAT_ACK, then mac80211 should try the next authentication immeditely, but in fact mac80211 wait 1 second for it, the reason is ieee80211_is_auth(fc) in ieee80211_sta_work check fail for the sk_buff which is not restored, the data of sk_buff is not the begin of ieee80211_hdr, in fact it is the begin of htt_cmd_hdr. dmesg without this patch, it wait 1 second for the next retry when ath10k report without IEEE80211_TX_STAT_ACK for authentication: [ 6973.883116] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 1/3) [ 6974.705471] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 2/3) [ 6975.712962] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 3/3) Restore the sk_buff make mac8011 retry the next authentication immeditely which meet logic of mac80211. dmesg with this patch, it retry the next immeditely when ath10k report without IEEE80211_TX_STAT_ACK for authentication: [ 216.734813] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 1/3) [ 216.739914] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 2/3) [ 216.745874] wlan0: send auth to 5e:6f:2b:0d:fb:d7 (try 3/3) Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00049 Signed-off-by: Wen Gong <wgong@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1612839530-2263-1-git-send-email-wgong@codeaurora.org |
||
|---|---|---|
| .. | ||
| ahb.c | ||
| ahb.h | ||
| bmi.c | ||
| bmi.h | ||
| ce.c | ||
| ce.h | ||
| core.c | ||
| core.h | ||
| coredump.c | ||
| coredump.h | ||
| debug.c | ||
| debug.h | ||
| debugfs_sta.c | ||
| hif.h | ||
| htc.c | ||
| htc.h | ||
| htt_rx.c | ||
| htt_tx.c | ||
| htt.c | ||
| htt.h | ||
| hw.c | ||
| hw.h | ||
| Kconfig | ||
| mac.c | ||
| mac.h | ||
| Makefile | ||
| p2p.c | ||
| p2p.h | ||
| pci.c | ||
| pci.h | ||
| qmi_wlfw_v01.c | ||
| qmi_wlfw_v01.h | ||
| qmi.c | ||
| qmi.h | ||
| rx_desc.h | ||
| sdio.c | ||
| sdio.h | ||
| snoc.c | ||
| snoc.h | ||
| spectral.c | ||
| spectral.h | ||
| swap.c | ||
| swap.h | ||
| targaddrs.h | ||
| testmode_i.h | ||
| testmode.c | ||
| testmode.h | ||
| thermal.c | ||
| thermal.h | ||
| trace.c | ||
| trace.h | ||
| txrx.c | ||
| txrx.h | ||
| usb.c | ||
| usb.h | ||
| wmi-ops.h | ||
| wmi-tlv.c | ||
| wmi-tlv.h | ||
| wmi.c | ||
| wmi.h | ||
| wow.c | ||
| wow.h | ||