diff options
Diffstat (limited to 'drivers/net/wireless/libertas/assoc.c')
-rw-r--r-- | drivers/net/wireless/libertas/assoc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/libertas/assoc.c b/drivers/net/wireless/libertas/assoc.c index 48fc6d171d58..2ee38a25adef 100644 --- a/drivers/net/wireless/libertas/assoc.c +++ b/drivers/net/wireless/libertas/assoc.c | |||
@@ -347,7 +347,17 @@ static int assoc_helper_secinfo(wlan_private *priv, | |||
347 | sizeof(struct wlan_802_11_security)); | 347 | sizeof(struct wlan_802_11_security)); |
348 | 348 | ||
349 | ret = libertas_set_mac_packet_filter(priv); | 349 | ret = libertas_set_mac_packet_filter(priv); |
350 | if (ret) | ||
351 | goto out; | ||
350 | 352 | ||
353 | /* enable/disable RSN */ | ||
354 | ret = libertas_prepare_and_send_command(priv, | ||
355 | cmd_802_11_enable_rsn, | ||
356 | cmd_act_set, | ||
357 | cmd_option_waitforrsp, | ||
358 | 0, assoc_req); | ||
359 | |||
360 | out: | ||
351 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); | 361 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); |
352 | return ret; | 362 | return ret; |
353 | } | 363 | } |
@@ -360,22 +370,12 @@ static int assoc_helper_wpa_keys(wlan_private *priv, | |||
360 | 370 | ||
361 | lbs_deb_enter(LBS_DEB_ASSOC); | 371 | lbs_deb_enter(LBS_DEB_ASSOC); |
362 | 372 | ||
363 | /* enable/Disable RSN */ | ||
364 | ret = libertas_prepare_and_send_command(priv, | ||
365 | cmd_802_11_enable_rsn, | ||
366 | cmd_act_set, | ||
367 | cmd_option_waitforrsp, | ||
368 | 0, assoc_req); | ||
369 | if (ret) | ||
370 | goto out; | ||
371 | |||
372 | ret = libertas_prepare_and_send_command(priv, | 373 | ret = libertas_prepare_and_send_command(priv, |
373 | cmd_802_11_key_material, | 374 | cmd_802_11_key_material, |
374 | cmd_act_set, | 375 | cmd_act_set, |
375 | cmd_option_waitforrsp, | 376 | cmd_option_waitforrsp, |
376 | 0, assoc_req); | 377 | 0, assoc_req); |
377 | 378 | ||
378 | out: | ||
379 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); | 379 | lbs_deb_leave_args(LBS_DEB_ASSOC, "ret %d", ret); |
380 | return ret; | 380 | return ret; |
381 | } | 381 | } |