Skip to content

Commit 59cd85c

Browse files
ariknemjmberg-intel
authored andcommitted
mac80211: set network header in TDLS frames
Correctly mark the network header location in mac80211-generated TDLS frames. These may be used by lower-level drivers. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com> Reviewed-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent b0b6aa2 commit 59cd85c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/mac80211/tdls.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev,
412412
tf->ether_type = cpu_to_be16(ETH_P_TDLS);
413413
tf->payload_type = WLAN_TDLS_SNAP_RFTYPE;
414414

415+
/* network header is after the ethernet header */
416+
skb_set_network_header(skb, ETH_HLEN);
417+
415418
switch (action_code) {
416419
case WLAN_TDLS_SETUP_REQUEST:
417420
tf->category = WLAN_CATEGORY_TDLS;

0 commit comments

Comments
 (0)