mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
mac80211: use sdata->skb_queue for TDLS
We need to differentiate these frames since the ones we currently put on the skb_queue_tdls_chsw have already been converted to ethernet format, but now that we've got a single place to enqueue to the sdata->skb_queue this isn't hard. Just differentiate based on protocol and adjust the code to queue the SKBs appropriately. Link: https://lore.kernel.org/r/20210517230754.17034990abef.I5342f2183c0d246b18d36c511eb3b6be298a6572@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
07bd1c79c9
commit
f057d14036
5 changed files with 23 additions and 46 deletions
|
@ -1456,7 +1456,10 @@ static void ieee80211_iface_work(struct work_struct *work)
|
|||
while ((skb = skb_dequeue(&sdata->skb_queue))) {
|
||||
kcov_remote_start_common(skb_get_kcov_handle(skb));
|
||||
|
||||
ieee80211_iface_process_skb(local, sdata, skb);
|
||||
if (skb->protocol == cpu_to_be16(ETH_P_TDLS))
|
||||
ieee80211_process_tdls_channel_switch(sdata, skb);
|
||||
else
|
||||
ieee80211_iface_process_skb(local, sdata, skb);
|
||||
|
||||
kfree_skb(skb);
|
||||
kcov_remote_stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue