aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee80211/ieee80211_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee80211/ieee80211_rx.c')
-rw-r--r--net/ieee80211/ieee80211_rx.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/net/ieee80211/ieee80211_rx.c b/net/ieee80211/ieee80211_rx.c
index 281223e41c58..876a004918b0 100644
--- a/net/ieee80211/ieee80211_rx.c
+++ b/net/ieee80211/ieee80211_rx.c
@@ -32,6 +32,7 @@
32#include <asm/uaccess.h> 32#include <asm/uaccess.h>
33#include <linux/ctype.h> 33#include <linux/ctype.h>
34 34
35#include <net/lib80211.h>
35#include <net/ieee80211.h> 36#include <net/ieee80211.h>
36 37
37static void ieee80211_monitor_rx(struct ieee80211_device *ieee, 38static void ieee80211_monitor_rx(struct ieee80211_device *ieee,
@@ -1145,8 +1146,8 @@ static int ieee80211_parse_info_param(struct ieee80211_info_element
1145 1146
1146 switch (info_element->id) { 1147 switch (info_element->id) {
1147 case MFIE_TYPE_SSID: 1148 case MFIE_TYPE_SSID:
1148 if (ieee80211_is_empty_essid(info_element->data, 1149 if (is_empty_ssid(info_element->data,
1149 info_element->len)) { 1150 info_element->len)) {
1150 network->flags |= NETWORK_EMPTY_ESSID; 1151 network->flags |= NETWORK_EMPTY_ESSID;
1151 break; 1152 break;
1152 } 1153 }
@@ -1390,7 +1391,7 @@ static int ieee80211_handle_assoc_resp(struct ieee80211_device *ieee, struct iee
1390 network->mode |= IEEE_B; 1391 network->mode |= IEEE_B;
1391 } 1392 }
1392 1393
1393 if (ieee80211_is_empty_essid(network->ssid, network->ssid_len)) 1394 if (is_empty_ssid(network->ssid, network->ssid_len))
1394 network->flags |= NETWORK_EMPTY_ESSID; 1395 network->flags |= NETWORK_EMPTY_ESSID;
1395 1396
1396 memcpy(&network->stats, stats, sizeof(network->stats)); 1397 memcpy(&network->stats, stats, sizeof(network->stats));
@@ -1456,13 +1457,13 @@ static int ieee80211_network_init(struct ieee80211_device *ieee, struct ieee8021
1456 if (network->mode == 0) { 1457 if (network->mode == 0) {
1457 IEEE80211_DEBUG_SCAN("Filtered out '%s (%pM)' " 1458 IEEE80211_DEBUG_SCAN("Filtered out '%s (%pM)' "
1458 "network.\n", 1459 "network.\n",
1459 escape_essid(network->ssid, 1460 escape_ssid(network->ssid,
1460 network->ssid_len), 1461 network->ssid_len),
1461 network->bssid); 1462 network->bssid);
1462 return 1; 1463 return 1;
1463 } 1464 }
1464 1465
1465 if (ieee80211_is_empty_essid(network->ssid, network->ssid_len)) 1466 if (is_empty_ssid(network->ssid, network->ssid_len))
1466 network->flags |= NETWORK_EMPTY_ESSID; 1467 network->flags |= NETWORK_EMPTY_ESSID;
1467 1468
1468 memcpy(&network->stats, stats, sizeof(network->stats)); 1469 memcpy(&network->stats, stats, sizeof(network->stats));
@@ -1576,7 +1577,7 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1576 1577
1577 IEEE80211_DEBUG_SCAN("'%s' (%pM" 1578 IEEE80211_DEBUG_SCAN("'%s' (%pM"
1578 "): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n", 1579 "): %c%c%c%c %c%c%c%c-%c%c%c%c %c%c%c%c\n",
1579 escape_essid(info_element->data, info_element->len), 1580 escape_ssid(info_element->data, info_element->len),
1580 beacon->header.addr3, 1581 beacon->header.addr3,
1581 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0', 1582 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0',
1582 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0', 1583 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0',
@@ -1597,8 +1598,8 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1597 1598
1598 if (ieee80211_network_init(ieee, beacon, &network, stats)) { 1599 if (ieee80211_network_init(ieee, beacon, &network, stats)) {
1599 IEEE80211_DEBUG_SCAN("Dropped '%s' (%pM) via %s.\n", 1600 IEEE80211_DEBUG_SCAN("Dropped '%s' (%pM) via %s.\n",
1600 escape_essid(info_element->data, 1601 escape_ssid(info_element->data,
1601 info_element->len), 1602 info_element->len),
1602 beacon->header.addr3, 1603 beacon->header.addr3,
1603 is_beacon(beacon->header.frame_ctl) ? 1604 is_beacon(beacon->header.frame_ctl) ?
1604 "BEACON" : "PROBE RESPONSE"); 1605 "BEACON" : "PROBE RESPONSE");
@@ -1635,8 +1636,8 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1635 target = oldest; 1636 target = oldest;
1636 IEEE80211_DEBUG_SCAN("Expired '%s' (%pM) from " 1637 IEEE80211_DEBUG_SCAN("Expired '%s' (%pM) from "
1637 "network list.\n", 1638 "network list.\n",
1638 escape_essid(target->ssid, 1639 escape_ssid(target->ssid,
1639 target->ssid_len), 1640 target->ssid_len),
1640 target->bssid); 1641 target->bssid);
1641 ieee80211_network_reset(target); 1642 ieee80211_network_reset(target);
1642 } else { 1643 } else {
@@ -1648,8 +1649,8 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1648 1649
1649#ifdef CONFIG_IEEE80211_DEBUG 1650#ifdef CONFIG_IEEE80211_DEBUG
1650 IEEE80211_DEBUG_SCAN("Adding '%s' (%pM) via %s.\n", 1651 IEEE80211_DEBUG_SCAN("Adding '%s' (%pM) via %s.\n",
1651 escape_essid(network.ssid, 1652 escape_ssid(network.ssid,
1652 network.ssid_len), 1653 network.ssid_len),
1653 network.bssid, 1654 network.bssid,
1654 is_beacon(beacon->header.frame_ctl) ? 1655 is_beacon(beacon->header.frame_ctl) ?
1655 "BEACON" : "PROBE RESPONSE"); 1656 "BEACON" : "PROBE RESPONSE");
@@ -1659,8 +1660,8 @@ static void ieee80211_process_probe_response(struct ieee80211_device
1659 list_add_tail(&target->list, &ieee->network_list); 1660 list_add_tail(&target->list, &ieee->network_list);
1660 } else { 1661 } else {
1661 IEEE80211_DEBUG_SCAN("Updating '%s' (%pM) via %s.\n", 1662 IEEE80211_DEBUG_SCAN("Updating '%s' (%pM) via %s.\n",
1662 escape_essid(target->ssid, 1663 escape_ssid(target->ssid,
1663 target->ssid_len), 1664 target->ssid_len),
1664 target->bssid, 1665 target->bssid,
1665 is_beacon(beacon->header.frame_ctl) ? 1666 is_beacon(beacon->header.frame_ctl) ?
1666 "BEACON" : "PROBE RESPONSE"); 1667 "BEACON" : "PROBE RESPONSE");