Correctly mark the network header location in mac80211-generated TDLS frames. These may be used by lower-level drivers.
Showing the changes to net (1 of 1 file). Show all
Unified · Split
| @@ -412,6 +412,9 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, · 411 unmodified lines | |||
| 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; |