aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-05-25 17:27:31 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:42 -0400
commit02eb229bbded41d189f1ec57dbd264f80c93b5c6 (patch)
treeef14d5e2ea04027ec04f318f375cffc0c1d31fa7 /drivers/net/wireless
parente76850d620a0a26fa807b4fa189c64a94789461e (diff)
[PATCH] libertas: use MAC_FMT and MAC_ARG where appropriate
Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c6
-rw-r--r--drivers/net/wireless/libertas/join.c9
-rw-r--r--drivers/net/wireless/libertas/scan.c10
3 files changed, 8 insertions, 17 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index 1545935f7a99..debefb6eab77 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -74,11 +74,9 @@ static ssize_t libertas_getscantable(struct file *file, char __user *userbuf,
74 74
75 memcpy(&cap, &iter_bss->cap, sizeof(cap)); 75 memcpy(&cap, &iter_bss->cap, sizeof(cap));
76 pos += snprintf(buf+pos, len-pos, 76 pos += snprintf(buf+pos, len-pos,
77 "%02u| %03d | %03ld | %02x:%02x:%02x:%02x:%02x:%02x |", 77 "%02u| %03d | %03ld | " MAC_FMT " |",
78 numscansdone, iter_bss->channel, iter_bss->rssi, 78 numscansdone, iter_bss->channel, iter_bss->rssi,
79 iter_bss->bssid[0], iter_bss->bssid[1], 79 MAC_ARG(iter_bss->bssid));
80 iter_bss->bssid[2], iter_bss->bssid[3],
81 iter_bss->bssid[4], iter_bss->bssid[5]);
82 pos += snprintf(buf+pos, len-pos, " %04x-", cap); 80 pos += snprintf(buf+pos, len-pos, " %04x-", cap);
83 pos += snprintf(buf+pos, len-pos, "%c%c%c |", 81 pos += snprintf(buf+pos, len-pos, "%c%c%c |",
84 iter_bss->cap.ibss ? 'A' : 'I', 82 iter_bss->cap.ibss ? 'A' : 'I',
diff --git a/drivers/net/wireless/libertas/join.c b/drivers/net/wireless/libertas/join.c
index 65777b40d57b..944f7acf261f 100644
--- a/drivers/net/wireless/libertas/join.c
+++ b/drivers/net/wireless/libertas/join.c
@@ -286,8 +286,7 @@ int libertas_cmd_80211_authenticate(wlan_private * priv,
286 286
287 memcpy(pauthenticate->macaddr, bssid, ETH_ALEN); 287 memcpy(pauthenticate->macaddr, bssid, ETH_ALEN);
288 288
289 lbs_deb_join("AUTH_CMD: Bssid is : %x:%x:%x:%x:%x:%x\n", 289 lbs_deb_join("AUTH_CMD: Bssid is : " MAC_FMT "\n", MAC_ARG(bssid));
290 bssid[0], bssid[1], bssid[2], bssid[3], bssid[4], bssid[5]);
291 ret = 0; 290 ret = 0;
292 291
293out: 292out:
@@ -865,10 +864,8 @@ int libertas_ret_80211_ad_hoc_start(wlan_private * priv,
865 864
866 lbs_deb_join("ADHOC_RESP: - Joined/Started Ad Hoc\n"); 865 lbs_deb_join("ADHOC_RESP: - Joined/Started Ad Hoc\n");
867 lbs_deb_join("ADHOC_RESP: channel = %d\n", adapter->curbssparams.channel); 866 lbs_deb_join("ADHOC_RESP: channel = %d\n", adapter->curbssparams.channel);
868 lbs_deb_join("ADHOC_RESP: BSSID = %02x:%02x:%02x:%02x:%02x:%02x\n", 867 lbs_deb_join("ADHOC_RESP: BSSID = " MAC_FMT "\n",
869 padhocresult->BSSID[0], padhocresult->BSSID[1], 868 MAC_ARG(padhocresult->BSSID));
870 padhocresult->BSSID[2], padhocresult->BSSID[3],
871 padhocresult->BSSID[4], padhocresult->BSSID[5]);
872 869
873done: 870done:
874 lbs_deb_leave_args(LBS_DEB_JOIN, "ret %d", ret); 871 lbs_deb_leave_args(LBS_DEB_JOIN, "ret %d", ret);
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c
index 334da0c5c5a1..133be93d608e 100644
--- a/drivers/net/wireless/libertas/scan.c
+++ b/drivers/net/wireless/libertas/scan.c
@@ -241,10 +241,8 @@ static void wlan_scan_process_results(wlan_private * priv)
241 mutex_lock(&adapter->lock); 241 mutex_lock(&adapter->lock);
242 list_for_each_entry (iter_bss, &adapter->network_list, list) { 242 list_for_each_entry (iter_bss, &adapter->network_list, list) {
243 lbs_deb_scan("Scan:(%02d) " MAC_FMT ", RSSI[%03d], SSID[%s]\n", 243 lbs_deb_scan("Scan:(%02d) " MAC_FMT ", RSSI[%03d], SSID[%s]\n",
244 i++, 244 i++, MAC_ARG(iter_bss->bssid), (s32) iter_bss->rssi,
245 iter_bss->bssid[0], iter_bss->bssid[1], iter_bss->bssid[2], 245 iter_bss->ssid.ssid);
246 iter_bss->bssid[3], iter_bss->bssid[4], iter_bss->bssid[5],
247 (s32) iter_bss->rssi, iter_bss->ssid.ssid);
248 } 246 }
249 mutex_unlock(&adapter->lock); 247 mutex_unlock(&adapter->lock);
250} 248}
@@ -983,9 +981,7 @@ static int libertas_process_bss(struct bss_descriptor * bss,
983 bytesleftforcurrentbeacon = beaconsize; 981 bytesleftforcurrentbeacon = beaconsize;
984 982
985 memcpy(bss->bssid, pcurrentptr, ETH_ALEN); 983 memcpy(bss->bssid, pcurrentptr, ETH_ALEN);
986 lbs_deb_scan("process_bss: AP BSSID " MAC_FMT "\n", 984 lbs_deb_scan("process_bss: AP BSSID " MAC_FMT "\n", MAC_ARG(bss->bssid));
987 bss->bssid[0], bss->bssid[1], bss->bssid[2],
988 bss->bssid[3], bss->bssid[4], bss->bssid[5]);
989 985
990 pcurrentptr += ETH_ALEN; 986 pcurrentptr += ETH_ALEN;
991 bytesleftforcurrentbeacon -= ETH_ALEN; 987 bytesleftforcurrentbeacon -= ETH_ALEN;