History

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.

Arik Nemtsov committed 12 years ago

Commit 59cd85c1 parent b0b6aa21 file · +3 −0Browse files

Unified · Split

net/mac80211/tdls.c+3−0
@@ -412,6 +412,9 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, · 411 unmodified lines
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;