diff options
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index b9b374119033..385b50f4b105 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -129,7 +129,6 @@ static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth | |||
129 | { | 129 | { |
130 | struct cmd_ds_802_11_authenticate cmd; | 130 | struct cmd_ds_802_11_authenticate cmd; |
131 | int ret = -1; | 131 | int ret = -1; |
132 | DECLARE_MAC_BUF(mac); | ||
133 | 132 | ||
134 | lbs_deb_enter(LBS_DEB_JOIN); | 133 | lbs_deb_enter(LBS_DEB_JOIN); |
135 | 134 | ||
@@ -138,8 +137,7 @@ static int lbs_set_authentication(struct lbs_private *priv, u8 bssid[6], u8 auth | |||
138 | 137 | ||
139 | cmd.authtype = iw_auth_to_ieee_auth(auth); | 138 | cmd.authtype = iw_auth_to_ieee_auth(auth); |
140 | 139 | ||
141 | lbs_deb_join("AUTH_CMD: BSSID %s, auth 0x%x\n", | 140 | lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", bssid, cmd.authtype); |
142 | print_mac(mac, bssid), cmd.authtype); | ||
143 | 141 | ||
144 | ret = lbs_cmd_with_response(priv, CMD_802_11_AUTHENTICATE, &cmd); | 142 | ret = lbs_cmd_with_response(priv, CMD_802_11_AUTHENTICATE, &cmd); |
145 | 143 | ||
@@ -342,8 +340,6 @@ static int lbs_associate(struct lbs_private *priv, | |||
342 | 340 | ||
343 | /* Firmware v9+ indicate authentication suites as a TLV */ | 341 | /* Firmware v9+ indicate authentication suites as a TLV */ |
344 | if (priv->fwrelease >= 0x09000000) { | 342 | if (priv->fwrelease >= 0x09000000) { |
345 | DECLARE_MAC_BUF(mac); | ||
346 | |||
347 | auth = (struct mrvl_ie_auth_type *) pos; | 343 | auth = (struct mrvl_ie_auth_type *) pos; |
348 | auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); | 344 | auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); |
349 | auth->header.len = cpu_to_le16(2); | 345 | auth->header.len = cpu_to_le16(2); |
@@ -351,8 +347,8 @@ static int lbs_associate(struct lbs_private *priv, | |||
351 | auth->auth = cpu_to_le16(tmpauth); | 347 | auth->auth = cpu_to_le16(tmpauth); |
352 | pos += sizeof(auth->header) + 2; | 348 | pos += sizeof(auth->header) + 2; |
353 | 349 | ||
354 | lbs_deb_join("AUTH_CMD: BSSID %s, auth 0x%x\n", | 350 | lbs_deb_join("AUTH_CMD: BSSID %pM, auth 0x%x\n", |
355 | print_mac(mac, bss->bssid), priv->secinfo.auth_mode); | 351 | bss->bssid, priv->secinfo.auth_mode); |
356 | } | 352 | } |
357 | 353 | ||
358 | /* WPA/WPA2 IEs */ | 354 | /* WPA/WPA2 IEs */ |
@@ -1368,11 +1364,17 @@ static int assoc_helper_wpa_keys(struct lbs_private *priv, | |||
1368 | if (ret) | 1364 | if (ret) |
1369 | goto out; | 1365 | goto out; |
1370 | 1366 | ||
1367 | memcpy(&priv->wpa_unicast_key, &assoc_req->wpa_unicast_key, | ||
1368 | sizeof(struct enc_key)); | ||
1369 | |||
1371 | if (test_bit(ASSOC_FLAG_WPA_MCAST_KEY, &assoc_req->flags)) { | 1370 | if (test_bit(ASSOC_FLAG_WPA_MCAST_KEY, &assoc_req->flags)) { |
1372 | clear_bit(ASSOC_FLAG_WPA_UCAST_KEY, &assoc_req->flags); | 1371 | clear_bit(ASSOC_FLAG_WPA_UCAST_KEY, &assoc_req->flags); |
1373 | 1372 | ||
1374 | ret = lbs_cmd_802_11_key_material(priv, CMD_ACT_SET, assoc_req); | 1373 | ret = lbs_cmd_802_11_key_material(priv, CMD_ACT_SET, assoc_req); |
1375 | assoc_req->flags = flags; | 1374 | assoc_req->flags = flags; |
1375 | |||
1376 | memcpy(&priv->wpa_mcast_key, &assoc_req->wpa_mcast_key, | ||
1377 | sizeof(struct enc_key)); | ||
1376 | } | 1378 | } |
1377 | 1379 | ||
1378 | out: | 1380 | out: |