|
@@ -401,7 +401,7 @@ static int wl1271_prepare_tx_frame(struct wl1271 *wl, struct wl12xx_vif *wlvif,
|
|
is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) ||
|
|
is_wep = (cipher == WLAN_CIPHER_SUITE_WEP40) ||
|
|
(cipher == WLAN_CIPHER_SUITE_WEP104);
|
|
(cipher == WLAN_CIPHER_SUITE_WEP104);
|
|
|
|
|
|
- if (WARN_ON(is_wep && wlvif->default_key != idx)) {
|
|
|
|
|
|
+ if (WARN_ON(is_wep && wlvif && wlvif->default_key != idx)) {
|
|
ret = wl1271_set_default_wep_key(wl, wlvif, idx);
|
|
ret = wl1271_set_default_wep_key(wl, wlvif, idx);
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
return ret;
|
|
return ret;
|