diff options
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index e2e9ebcd834..8f073ad1957 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -777,6 +777,7 @@ int wlan_scan_networks(wlan_private * priv, | |||
777 | #ifdef CONFIG_LIBERTAS_DEBUG | 777 | #ifdef CONFIG_LIBERTAS_DEBUG |
778 | struct bss_descriptor * iter_bss; | 778 | struct bss_descriptor * iter_bss; |
779 | int i = 0; | 779 | int i = 0; |
780 | DECLARE_MAC_BUF(mac); | ||
780 | #endif | 781 | #endif |
781 | 782 | ||
782 | lbs_deb_enter(LBS_DEB_SCAN); | 783 | lbs_deb_enter(LBS_DEB_SCAN); |
@@ -831,8 +832,8 @@ int wlan_scan_networks(wlan_private * priv, | |||
831 | /* Dump the scan table */ | 832 | /* Dump the scan table */ |
832 | mutex_lock(&adapter->lock); | 833 | mutex_lock(&adapter->lock); |
833 | list_for_each_entry (iter_bss, &adapter->network_list, list) { | 834 | list_for_each_entry (iter_bss, &adapter->network_list, list) { |
834 | lbs_deb_scan("Scan:(%02d) " MAC_FMT ", RSSI[%03d], SSID[%s]\n", | 835 | lbs_deb_scan("Scan:(%02d) %s, RSSI[%03d], SSID[%s]\n", |
835 | i++, MAC_ARG(iter_bss->bssid), (s32) iter_bss->rssi, | 836 | i++, print_mac(mac, iter_bss->bssid), (s32) iter_bss->rssi, |
836 | escape_essid(iter_bss->ssid, iter_bss->ssid_len)); | 837 | escape_essid(iter_bss->ssid, iter_bss->ssid_len)); |
837 | } | 838 | } |
838 | mutex_unlock(&adapter->lock); | 839 | mutex_unlock(&adapter->lock); |
@@ -876,6 +877,7 @@ static int libertas_process_bss(struct bss_descriptor * bss, | |||
876 | struct ieeetypes_dsparamset *pDS; | 877 | struct ieeetypes_dsparamset *pDS; |
877 | struct ieeetypes_cfparamset *pCF; | 878 | struct ieeetypes_cfparamset *pCF; |
878 | struct ieeetypes_ibssparamset *pibss; | 879 | struct ieeetypes_ibssparamset *pibss; |
880 | DECLARE_MAC_BUF(mac); | ||
879 | struct ieeetypes_countryinfoset *pcountryinfo; | 881 | struct ieeetypes_countryinfoset *pcountryinfo; |
880 | u8 *pos, *end, *p; | 882 | u8 *pos, *end, *p; |
881 | u8 n_ex_rates = 0, got_basic_rates = 0, n_basic_rates = 0; | 883 | u8 n_ex_rates = 0, got_basic_rates = 0, n_basic_rates = 0; |
@@ -906,7 +908,7 @@ static int libertas_process_bss(struct bss_descriptor * bss, | |||
906 | *bytesleft -= beaconsize; | 908 | *bytesleft -= beaconsize; |
907 | 909 | ||
908 | memcpy(bss->bssid, pos, ETH_ALEN); | 910 | memcpy(bss->bssid, pos, ETH_ALEN); |
909 | lbs_deb_scan("process_bss: AP BSSID " MAC_FMT "\n", MAC_ARG(bss->bssid)); | 911 | lbs_deb_scan("process_bss: AP BSSID %s\n", print_mac(mac, bss->bssid)); |
910 | pos += ETH_ALEN; | 912 | pos += ETH_ALEN; |
911 | 913 | ||
912 | if ((end - pos) < 12) { | 914 | if ((end - pos) < 12) { |
@@ -1724,6 +1726,7 @@ int libertas_ret_80211_scan(wlan_private * priv, struct cmd_ds_command *resp) | |||
1724 | struct bss_descriptor new; | 1726 | struct bss_descriptor new; |
1725 | struct bss_descriptor * found = NULL; | 1727 | struct bss_descriptor * found = NULL; |
1726 | struct bss_descriptor * oldest = NULL; | 1728 | struct bss_descriptor * oldest = NULL; |
1729 | DECLARE_MAC_BUF(mac); | ||
1727 | 1730 | ||
1728 | /* Process the data fields and IEs returned for this BSS */ | 1731 | /* Process the data fields and IEs returned for this BSS */ |
1729 | memset(&new, 0, sizeof (struct bss_descriptor)); | 1732 | memset(&new, 0, sizeof (struct bss_descriptor)); |
@@ -1762,9 +1765,8 @@ int libertas_ret_80211_scan(wlan_private * priv, struct cmd_ds_command *resp) | |||
1762 | continue; | 1765 | continue; |
1763 | } | 1766 | } |
1764 | 1767 | ||
1765 | lbs_deb_scan("SCAN_RESP: BSSID = " MAC_FMT "\n", | 1768 | lbs_deb_scan("SCAN_RESP: BSSID = %s\n", |
1766 | new.bssid[0], new.bssid[1], new.bssid[2], | 1769 | print_mac(mac, new.bssid)); |
1767 | new.bssid[3], new.bssid[4], new.bssid[5]); | ||
1768 | 1770 | ||
1769 | /* Copy the locally created newbssentry to the scan table */ | 1771 | /* Copy the locally created newbssentry to the scan table */ |
1770 | memcpy(found, &new, offsetof(struct bss_descriptor, list)); | 1772 | memcpy(found, &new, offsetof(struct bss_descriptor, list)); |