Skip to content

Commit 785c193

Browse files
ipylypivgregkh
authored andcommitted
staging: wlan-ng: add missing byte order conversion
commit 2c474b8579e9b67ff72b2bcefce9f53c7f4469d4 upstream. Conversion macros le16_to_cpu was removed and that caused new sparse warning sparse output: drivers/staging/wlan-ng/p80211netdev.c:241:44: warning: incorrect type in argument 2 (different base types) drivers/staging/wlan-ng/p80211netdev.c:241:44: expected unsigned short [unsigned] [usertype] fc drivers/staging/wlan-ng/p80211netdev.c:241:44: got restricted __le16 [usertype] fc Fixes: 7ad8257 ("staging:wlan-ng:Fix sparse warning") Signed-off-by: Igor Pylypiv <igor.pylypiv@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 59fcc1b commit 785c193

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/wlan-ng/p80211netdev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static int p80211_convert_to_ether(wlandevice_t *wlandev, struct sk_buff *skb)
232232
struct p80211_hdr_a3 *hdr;
233233

234234
hdr = (struct p80211_hdr_a3 *) skb->data;
235-
if (p80211_rx_typedrop(wlandev, hdr->fc))
235+
if (p80211_rx_typedrop(wlandev, le16_to_cpu(hdr->fc)))
236236
return CONV_TO_ETHER_SKIPPED;
237237

238238
/* perform mcast filtering: allow my local address through but reject

0 commit comments

Comments
 (0)