wireless: replace uses of __constant_{endian}
The base versions handle constant folding now. Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
e5d24efe52
commit
c1b4aa3fb6
@@ -193,7 +193,7 @@ hdr->f.status = s; hdr->f.len = l; hdr->f.data = d
|
||||
if (prism_header)
|
||||
skb_pull(skb, phdrlen);
|
||||
skb->pkt_type = PACKET_OTHERHOST;
|
||||
skb->protocol = __constant_htons(ETH_P_802_2);
|
||||
skb->protocol = cpu_to_be16(ETH_P_802_2);
|
||||
memset(skb->cb, 0, sizeof(skb->cb));
|
||||
netif_rx(skb);
|
||||
|
||||
@@ -1094,7 +1094,7 @@ void hostap_80211_rx(struct net_device *dev, struct sk_buff *skb,
|
||||
if (skb2 != NULL) {
|
||||
/* send to wireless media */
|
||||
skb2->dev = dev;
|
||||
skb2->protocol = __constant_htons(ETH_P_802_3);
|
||||
skb2->protocol = cpu_to_be16(ETH_P_802_3);
|
||||
skb_reset_mac_header(skb2);
|
||||
skb_reset_network_header(skb2);
|
||||
/* skb2->network_header += ETH_HLEN; */
|
||||
|
Reference in New Issue
Block a user