Lines Matching refs:payload_length

259 	unsigned int payload_length;  in skb_p80211_to_ether()  local
270 payload_length = skb->len - WLAN_HDR_A3_LEN - WLAN_CRC_LEN; in skb_p80211_to_ether()
290 if (payload_length < WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN) { in skb_p80211_to_ether()
294 payload_length -= (WLAN_HDR_A4_LEN - WLAN_HDR_A3_LEN); in skb_p80211_to_ether()
303 if (payload_length <= 8) { in skb_p80211_to_ether()
309 payload_length - 8, -1, in skb_p80211_to_ether()
312 payload_length - 4); in skb_p80211_to_ether()
322 payload_length -= 8; in skb_p80211_to_ether()
339 if ((payload_length >= sizeof(struct wlan_ethhdr)) && in skb_p80211_to_ether()
343 pr_debug("802.3 ENCAP len: %d\n", payload_length); in skb_p80211_to_ether()
346 if (payload_length > (netdev->mtu + ETH_HLEN)) { in skb_p80211_to_ether()
350 payload_length, netdev->mtu + ETH_HLEN); in skb_p80211_to_ether()
359 } else if ((payload_length >= sizeof(struct wlan_llc) + in skb_p80211_to_ether()
370 pr_debug("SNAP+RFC1042 len: %d\n", payload_length); in skb_p80211_to_ether()
375 if (payload_length > netdev->mtu) { in skb_p80211_to_ether()
379 payload_length, netdev->mtu); in skb_p80211_to_ether()
390 e_hdr->type = htons(payload_length); in skb_p80211_to_ether()
395 } else if ((payload_length >= sizeof(struct wlan_llc) + in skb_p80211_to_ether()
400 pr_debug("802.1h/RFC1042 len: %d\n", payload_length); in skb_p80211_to_ether()
406 if ((payload_length - sizeof(struct wlan_llc) - in skb_p80211_to_ether()
412 (long)(payload_length - in skb_p80211_to_ether()
436 pr_debug("NON-ENCAP len: %d\n", payload_length); in skb_p80211_to_ether()
443 if (payload_length > netdev->mtu) { in skb_p80211_to_ether()
447 payload_length, netdev->mtu); in skb_p80211_to_ether()
458 e_hdr->type = htons(payload_length); in skb_p80211_to_ether()