diff options
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 92be60415d04..8b88e9544418 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -151,7 +151,6 @@ static int lbs_adhoc_join(struct lbs_private *priv, | |||
151 | struct cmd_ds_802_11_ad_hoc_join cmd; | 151 | struct cmd_ds_802_11_ad_hoc_join cmd; |
152 | struct bss_descriptor *bss = &assoc_req->bss; | 152 | struct bss_descriptor *bss = &assoc_req->bss; |
153 | u8 preamble = RADIO_PREAMBLE_LONG; | 153 | u8 preamble = RADIO_PREAMBLE_LONG; |
154 | DECLARE_MAC_BUF(mac); | ||
155 | u16 ratesize = 0; | 154 | u16 ratesize = 0; |
156 | int ret = 0; | 155 | int ret = 0; |
157 | 156 | ||
@@ -226,8 +225,8 @@ static int lbs_adhoc_join(struct lbs_private *priv, | |||
226 | bss->capability, CAPINFO_MASK); | 225 | bss->capability, CAPINFO_MASK); |
227 | 226 | ||
228 | /* information on BSSID descriptor passed to FW */ | 227 | /* information on BSSID descriptor passed to FW */ |
229 | lbs_deb_join("ADHOC_J_CMD: BSSID = %s, SSID = '%s'\n", | 228 | lbs_deb_join("ADHOC_J_CMD: BSSID = %pM, SSID = '%s'\n", |
230 | print_mac(mac, cmd.bss.bssid), cmd.bss.ssid); | 229 | cmd.bss.bssid, cmd.bss.ssid); |
231 | 230 | ||
232 | /* Only v8 and below support setting these */ | 231 | /* Only v8 and below support setting these */ |
233 | if (priv->fwrelease < 0x09000000) { | 232 | if (priv->fwrelease < 0x09000000) { |
@@ -752,17 +751,15 @@ static int assoc_helper_bssid(struct lbs_private *priv, | |||
752 | { | 751 | { |
753 | int ret = 0; | 752 | int ret = 0; |
754 | struct bss_descriptor * bss; | 753 | struct bss_descriptor * bss; |
755 | DECLARE_MAC_BUF(mac); | ||
756 | 754 | ||
757 | lbs_deb_enter_args(LBS_DEB_ASSOC, "BSSID %s", | 755 | lbs_deb_enter_args(LBS_DEB_ASSOC, "BSSID %pM", assoc_req->bssid); |
758 | print_mac(mac, assoc_req->bssid)); | ||
759 | 756 | ||
760 | /* Search for index position in list for requested MAC */ | 757 | /* Search for index position in list for requested MAC */ |
761 | bss = lbs_find_bssid_in_list(priv, assoc_req->bssid, | 758 | bss = lbs_find_bssid_in_list(priv, assoc_req->bssid, |
762 | assoc_req->mode); | 759 | assoc_req->mode); |
763 | if (bss == NULL) { | 760 | if (bss == NULL) { |
764 | lbs_deb_assoc("ASSOC: WAP: BSSID %s not found, " | 761 | lbs_deb_assoc("ASSOC: WAP: BSSID %pM not found, " |
765 | "cannot associate.\n", print_mac(mac, assoc_req->bssid)); | 762 | "cannot associate.\n", assoc_req->bssid); |
766 | goto out; | 763 | goto out; |
767 | } | 764 | } |
768 | 765 | ||
@@ -1208,7 +1205,6 @@ void lbs_association_worker(struct work_struct *work) | |||
1208 | struct assoc_request * assoc_req = NULL; | 1205 | struct assoc_request * assoc_req = NULL; |
1209 | int ret = 0; | 1206 | int ret = 0; |
1210 | int find_any_ssid = 0; | 1207 | int find_any_ssid = 0; |
1211 | DECLARE_MAC_BUF(mac); | ||
1212 | 1208 | ||
1213 | lbs_deb_enter(LBS_DEB_ASSOC); | 1209 | lbs_deb_enter(LBS_DEB_ASSOC); |
1214 | 1210 | ||
@@ -1228,13 +1224,13 @@ void lbs_association_worker(struct work_struct *work) | |||
1228 | " chann: %d\n" | 1224 | " chann: %d\n" |
1229 | " band: %d\n" | 1225 | " band: %d\n" |
1230 | " mode: %d\n" | 1226 | " mode: %d\n" |
1231 | " BSSID: %s\n" | 1227 | " BSSID: %pM\n" |
1232 | " secinfo: %s%s%s\n" | 1228 | " secinfo: %s%s%s\n" |
1233 | " auth_mode: %d\n", | 1229 | " auth_mode: %d\n", |
1234 | assoc_req->flags, | 1230 | assoc_req->flags, |
1235 | escape_essid(assoc_req->ssid, assoc_req->ssid_len), | 1231 | escape_essid(assoc_req->ssid, assoc_req->ssid_len), |
1236 | assoc_req->channel, assoc_req->band, assoc_req->mode, | 1232 | assoc_req->channel, assoc_req->band, assoc_req->mode, |
1237 | print_mac(mac, assoc_req->bssid), | 1233 | assoc_req->bssid, |
1238 | assoc_req->secinfo.WPAenabled ? " WPA" : "", | 1234 | assoc_req->secinfo.WPAenabled ? " WPA" : "", |
1239 | assoc_req->secinfo.WPA2enabled ? " WPA2" : "", | 1235 | assoc_req->secinfo.WPA2enabled ? " WPA2" : "", |
1240 | assoc_req->secinfo.wep_enabled ? " WEP" : "", | 1236 | assoc_req->secinfo.wep_enabled ? " WEP" : "", |
@@ -1357,8 +1353,8 @@ void lbs_association_worker(struct work_struct *work) | |||
1357 | } | 1353 | } |
1358 | 1354 | ||
1359 | if (success) { | 1355 | if (success) { |
1360 | lbs_deb_assoc("associated to %s\n", | 1356 | lbs_deb_assoc("associated to %pM\n", |
1361 | print_mac(mac, priv->curbssparams.bssid)); | 1357 | priv->curbssparams.bssid); |
1362 | lbs_prepare_and_send_command(priv, | 1358 | lbs_prepare_and_send_command(priv, |
1363 | CMD_802_11_RSSI, | 1359 | CMD_802_11_RSSI, |
1364 | 0, CMD_OPTION_WAITFORRSP, 0, NULL); | 1360 | 0, CMD_OPTION_WAITFORRSP, 0, NULL); |
@@ -1478,7 +1474,6 @@ int lbs_cmd_80211_authenticate(struct lbs_private *priv, | |||
1478 | struct cmd_ds_802_11_authenticate *pauthenticate = &cmd->params.auth; | 1474 | struct cmd_ds_802_11_authenticate *pauthenticate = &cmd->params.auth; |
1479 | int ret = -1; | 1475 | int ret = -1; |
1480 | u8 *bssid = pdata_buf; | 1476 | u8 *bssid = pdata_buf; |
1481 | DECLARE_MAC_BUF(mac); | ||
1482 | 1477 | ||
1483 | lbs_deb_enter(LBS_DEB_JOIN); | 1478 | lbs_deb_enter(LBS_DEB_JOIN); |
1484 | 1479 | ||
@@ -1505,8 +1500,8 @@ int lbs_cmd_80211_authenticate(struct lbs_private *priv, | |||
1505 | 1500 | ||
1506 | memcpy(pauthenticate->macaddr, bssid, ETH_ALEN); | 1501 | memcpy(pauthenticate->macaddr, bssid, ETH_ALEN); |
1507 | 1502 | ||
1508 | lbs_deb_join("AUTH_CMD: BSSID %s, auth 0x%x\n", | 1503 | lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", |
1509 | print_mac(mac, bssid), pauthenticate->authtype); | 1504 | bssid, pauthenticate->authtype); |
1510 | ret = 0; | 1505 | ret = 0; |
1511 | 1506 | ||
1512 | out: | 1507 | out: |
@@ -1770,7 +1765,6 @@ static int lbs_adhoc_post(struct lbs_private *priv, struct cmd_header *resp) | |||
1770 | struct cmd_ds_802_11_ad_hoc_result *adhoc_resp; | 1765 | struct cmd_ds_802_11_ad_hoc_result *adhoc_resp; |
1771 | union iwreq_data wrqu; | 1766 | union iwreq_data wrqu; |
1772 | struct bss_descriptor *bss; | 1767 | struct bss_descriptor *bss; |
1773 | DECLARE_MAC_BUF(mac); | ||
1774 | 1768 | ||
1775 | lbs_deb_enter(LBS_DEB_JOIN); | 1769 | lbs_deb_enter(LBS_DEB_JOIN); |
1776 | 1770 | ||
@@ -1819,9 +1813,9 @@ static int lbs_adhoc_post(struct lbs_private *priv, struct cmd_header *resp) | |||
1819 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; | 1813 | wrqu.ap_addr.sa_family = ARPHRD_ETHER; |
1820 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); | 1814 | wireless_send_event(priv->dev, SIOCGIWAP, &wrqu, NULL); |
1821 | 1815 | ||
1822 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %s, channel %d\n", | 1816 | lbs_deb_join("ADHOC_RESP: Joined/started '%s', BSSID %pM, channel %d\n", |
1823 | escape_essid(bss->ssid, bss->ssid_len), | 1817 | escape_essid(bss->ssid, bss->ssid_len), |
1824 | print_mac(mac, priv->curbssparams.bssid), | 1818 | priv->curbssparams.bssid, |
1825 | priv->curbssparams.channel); | 1819 | priv->curbssparams.channel); |
1826 | 1820 | ||
1827 | done: | 1821 | done: |