mt76x0u: Probing issues on Raspberry Pi 3 B+
Quoted 31 lines · Lorenzo Bianconi
Quoted 3 lines
commit
0d9813319b40399a0d8fd761d2fcfedee5701487Author: Lorenzo Bianconi <[email protected]> Date: Fri Sep 7 23:13:12 2018 +0200[...]
Quoted 12 lines
drivers/net/wireless/mediatek/mt76/mt76x02_util.c +1
-2@@ -550,21 +550,33 @@ void mt76x02_sta_rate_tbl_update(struct ieee80211_hw *hw, }EXPORT_SYMBOL_GPL (mt76x02_sta_rate_tbl_update); -int mt76x02_insert_hdr_pad (struct sk_buff *skb) +void mt76x02_align_skb (struct sk_buff *skb) { -int len =ieee80211_get_hdrlen_from_skb (skb);drivers/net/wireless/mediatek/mt76/mt76x02_util.c void mt76x02_sta_rate_tbl_update(struct ieee80211_hw *hw, · line 562
Quoted 10 lines
drivers/net/wireless/mediatek/mt76/mt76x02_util.c +7
-2+int align = ((unsigned long ) skb->data) &3 ; +int hdrlen, skblen; -if (len %4 ==0 ) -return 0 ; + hdrlen =ieee80211_get_hdrlen_from_skb (skb); +WARN_ON_ONCE (align ==0 && (hdrlen &3 )); + +if (align ==0 ) +return ;Hi Stanislaw,
Quoted 2 lines
is it possible that
skb->datais 4 byte aligned but hdrlen is not? (e.g 4addr data frames, not qos)?
It might be possible, so for now I add this
WARN_ON_ONCE(align == 0 && (hdrlen & 3));
and plan to do some investigation on frame aliment.
Quoted 2 lines
are you sure this is true *only* for probe requests? this could hit performances and it is used even in pci code
I'm not 100% sure, but I haven't seen any other frames with that. All other unaligned frames I've seen in my tests had unaligned header and adding header pad aligned them. But obviously I've haven't tested all possible scenarios.
Stanislaw