diff options
| author | Ping-Ke Shih <pkshih@realtek.com> | 2025-12-17 10:26:46 +0300 |
|---|---|---|
| committer | Ping-Ke Shih <pkshih@realtek.com> | 2025-12-23 06:50:33 +0300 |
| commit | d3a9e132a4c6273a5254e743da14887502e928c8 (patch) | |
| tree | ff3040cc797ab643807f6576a7653a0f1cd8a323 /include/linux/debugobjects.h | |
| parent | a2f1fc9ab6fb0d5c9d701a516c342944258fb20e (diff) | |
| download | linux-d3a9e132a4c6273a5254e743da14887502e928c8.tar.xz | |
wifi: rtw89: correct use sequence of driver_data in skb->info
As ieee80211_tx_info is used to assist filling TX descriptor, and layout of
IEEE80211_SKB_CB(skb)->driver_data (accessing by RTW89_TX_SKB_CB()) is
union, so driver_data must be used by/after rtw89_hci_tx_write() or just
before calling rtw89_hci_tx_write(). Otherwise, ieee80211_tx_info::control
data is overwritten.
Found this by using injected packets which uses ieee80211_tx_info::control,
but always sending incorrect data rate.
Cc: Fedor Pchelkin <pchelkin@ispras.ru>
Fixes: d5da3d9fb05f ("wifi: rtw89: process TX wait skbs for USB via C2H handler")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Tested-by: Fedor Pchelkin <pchelkin@ispras.ru>
Link: https://patch.msgid.link/20251217072646.43209-1-pkshih@realtek.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
