aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-12-29 05:03:35 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:08:48 -0500
commit8524f59d4735e1ff9c9dc3e09ebcc7bdb3b32b7b (patch)
treec28ee60486ed59d316a2514c011f6a21ef298278 /net/ieee80211
parentd9e94d5647ee6700773d81514a8ccb7dc6342fb4 (diff)
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>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/ieee80211_rx.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c
index 6a9c07f9b10f..1e3f87c8c012 100644
--- a/net/ieee80211/ieee80211_rx.c
+++ b/net/ieee80211/ieee80211_rx.c
@@ -1585,26 +1585,25 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1585 DECLARE_MAC_BUF(mac); 1585 DECLARE_MAC_BUF(mac);
1586 1586
1587 IEEE80211_DEBUG_SCAN("'%s' (%s" 1587 IEEE80211_DEBUG_SCAN("'%s' (%s"
1588 "): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n", 1588 "): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n",
1589 escape_essid(info_element->data, 1589 escape_essid(info_element->data, info_element->len),
1590 info_element->len), 1590 print_mac(mac, beacon->header.addr3),
1591 print_mac(mac, beacon->header.addr3), 1591 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0',
1592 (beacon->capability & (1 << 0xf)) ? '1' : '0', 1592 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0',
1593 (beacon->capability & (1 << 0xe)) ? '1' : '0', 1593 (beacon->capability & cpu_to_le16(1 << 0xd)) ? '1' : '0',
1594 (beacon->capability & (1 << 0xd)) ? '1' : '0', 1594 (beacon->capability & cpu_to_le16(1 << 0xc)) ? '1' : '0',
1595 (beacon->capability & (1 << 0xc)) ? '1' : '0', 1595 (beacon->capability & cpu_to_le16(1 << 0xb)) ? '1' : '0',
1596 (beacon->capability & (1 << 0xb)) ? '1' : '0', 1596 (beacon->capability & cpu_to_le16(1 << 0xa)) ? '1' : '0',
1597 (beacon->capability & (1 << 0xa)) ? '1' : '0', 1597 (beacon->capability & cpu_to_le16(1 << 0x9)) ? '1' : '0',
1598 (beacon->capability & (1 << 0x9)) ? '1' : '0', 1598 (beacon->capability & cpu_to_le16(1 << 0x8)) ? '1' : '0',
1599 (beacon->capability & (1 << 0x8)) ? '1' : '0', 1599 (beacon->capability & cpu_to_le16(1 << 0x7)) ? '1' : '0',
1600 (beacon->capability & (1 << 0x7)) ? '1' : '0', 1600 (beacon->capability & cpu_to_le16(1 << 0x6)) ? '1' : '0',
1601 (beacon->capability & (1 << 0x6)) ? '1' : '0', 1601 (beacon->capability & cpu_to_le16(1 << 0x5)) ? '1' : '0',
1602 (beacon->capability & (1 << 0x5)) ? '1' : '0', 1602 (beacon->capability & cpu_to_le16(1 << 0x4)) ? '1' : '0',
1603 (beacon->capability & (1 << 0x4)) ? '1' : '0', 1603 (beacon->capability & cpu_to_le16(1 << 0x3)) ? '1' : '0',
1604 (beacon->capability & (1 << 0x3)) ? '1' : '0', 1604 (beacon->capability & cpu_to_le16(1 << 0x2)) ? '1' : '0',
1605 (beacon->capability & (1 << 0x2)) ? '1' : '0', 1605 (beacon->capability & cpu_to_le16(1 << 0x1)) ? '1' : '0',
1606 (beacon->capability & (1 << 0x1)) ? '1' : '0', 1606 (beacon->capability & cpu_to_le16(1 << 0x0)) ? '1' : '0');
1607 (beacon->capability & (1 << 0x0)) ? '1' : '0');
1608 1607
1609 if (ieee80211_network_init(ieee, beacon, &network, stats)) { 1608 if (ieee80211_network_init(ieee, beacon, &network, stats)) {
1610 IEEE80211_DEBUG_SCAN("Dropped '%s' (%s) via %s.\n", 1609 IEEE80211_DEBUG_SCAN("Dropped '%s' (%s) via %s.\n",