diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-09-09 10:11:02 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-09-11 06:25:22 -0400 |
commit | 59cd85cbcf2ecca9736652dc0cfd2ec600d7ef2a (patch) | |
tree | f774b6e5e60c1cd889e4b780248ba7d41de85086 /net/mac80211/tdls.c | |
parent | b0b6aa2c8e0d0e34f7658d5cc1e4fbb59f701c42 (diff) |
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>
Diffstat (limited to 'net/mac80211/tdls.c')
-rw-r--r-- | net/mac80211/tdls.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index bcf51e43ccc1..4ea25dec0698 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c | |||
@@ -412,6 +412,9 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, | |||
412 | tf->ether_type = cpu_to_be16(ETH_P_TDLS); | 412 | tf->ether_type = cpu_to_be16(ETH_P_TDLS); |
413 | tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; | 413 | tf->payload_type = WLAN_TDLS_SNAP_RFTYPE; |
414 | 414 | ||
415 | /* network header is after the ethernet header */ | ||
416 | skb_set_network_header(skb, ETH_HLEN); | ||
417 | |||
415 | switch (action_code) { | 418 | switch (action_code) { |
416 | case WLAN_TDLS_SETUP_REQUEST: | 419 | case WLAN_TDLS_SETUP_REQUEST: |
417 | tf->category = WLAN_CATEGORY_TDLS; | 420 | tf->category = WLAN_CATEGORY_TDLS; |