mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
ieee80211: beacon->capability is little-endian
It's only a debugging printk, so it went unnoticed; still, the fix is trivial, so... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
d9e94d5647
commit
8524f59d47
@ -1585,26 +1585,25 @@ static void ieee80211_process_probe_response(struct ieee80211_device
|
||||
DECLARE_MAC_BUF(mac);
|
||||
|
||||
IEEE80211_DEBUG_SCAN("'%s' (%s"
|
||||
"): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n",
|
||||
escape_essid(info_element->data,
|
||||
info_element->len),
|
||||
print_mac(mac, beacon->header.addr3),
|
||||
(beacon->capability & (1 << 0xf)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0xe)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0xd)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0xc)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0xb)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0xa)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x9)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x8)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x7)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x6)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x5)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x4)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x3)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x2)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x1)) ? '1' : '0',
|
||||
(beacon->capability & (1 << 0x0)) ? '1' : '0');
|
||||
"): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n",
|
||||
escape_essid(info_element->data, info_element->len),
|
||||
print_mac(mac, beacon->header.addr3),
|
||||
(beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0xd)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0xc)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0xb)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0xa)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x9)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x8)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x7)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x6)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x5)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x4)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x3)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x2)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x1)) ? '1' : '0',
|
||||
(beacon->capability & cpu_to_le16(1 << 0x0)) ? '1' : '0');
|
||||
|
||||
if (ieee80211_network_init(ieee, beacon, &network, stats)) {
|
||||
IEEE80211_DEBUG_SCAN("Dropped '%s' (%s) via %s.\n",
|
||||
|
Loading…
Reference in New Issue
Block a user