diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/scan.c | 29 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 5 |
2 files changed, 5 insertions, 29 deletions
diff --git a/drivers/net/wireless/mwifiex/scan.c b/drivers/net/wireless/mwifiex/scan.c index 37b24e830844..9cf5d8f07df8 100644 --- a/drivers/net/wireless/mwifiex/scan.c +++ b/drivers/net/wireless/mwifiex/scan.c | |||
@@ -1500,36 +1500,7 @@ static int mwifiex_update_curr_bss_params(struct mwifiex_private *priv, | |||
1500 | if (ret) | 1500 | if (ret) |
1501 | goto done; | 1501 | goto done; |
1502 | 1502 | ||
1503 | /* Update current bss descriptor parameters */ | ||
1504 | spin_lock_irqsave(&priv->curr_bcn_buf_lock, flags); | 1503 | spin_lock_irqsave(&priv->curr_bcn_buf_lock, flags); |
1505 | priv->curr_bss_params.bss_descriptor.bcn_wpa_ie = NULL; | ||
1506 | priv->curr_bss_params.bss_descriptor.wpa_offset = 0; | ||
1507 | priv->curr_bss_params.bss_descriptor.bcn_rsn_ie = NULL; | ||
1508 | priv->curr_bss_params.bss_descriptor.rsn_offset = 0; | ||
1509 | priv->curr_bss_params.bss_descriptor.bcn_wapi_ie = NULL; | ||
1510 | priv->curr_bss_params.bss_descriptor.wapi_offset = 0; | ||
1511 | priv->curr_bss_params.bss_descriptor.bcn_ht_cap = NULL; | ||
1512 | priv->curr_bss_params.bss_descriptor.ht_cap_offset = 0; | ||
1513 | priv->curr_bss_params.bss_descriptor.bcn_ht_oper = NULL; | ||
1514 | priv->curr_bss_params.bss_descriptor.ht_info_offset = 0; | ||
1515 | priv->curr_bss_params.bss_descriptor.bcn_bss_co_2040 = NULL; | ||
1516 | priv->curr_bss_params.bss_descriptor.bss_co_2040_offset = 0; | ||
1517 | priv->curr_bss_params.bss_descriptor.bcn_ext_cap = NULL; | ||
1518 | priv->curr_bss_params.bss_descriptor.ext_cap_offset = 0; | ||
1519 | priv->curr_bss_params.bss_descriptor.beacon_buf = NULL; | ||
1520 | priv->curr_bss_params.bss_descriptor.beacon_buf_size = 0; | ||
1521 | priv->curr_bss_params.bss_descriptor.bcn_vht_cap = NULL; | ||
1522 | priv->curr_bss_params.bss_descriptor.vht_cap_offset = 0; | ||
1523 | priv->curr_bss_params.bss_descriptor.bcn_vht_oper = NULL; | ||
1524 | priv->curr_bss_params.bss_descriptor.vht_info_offset = 0; | ||
1525 | priv->curr_bss_params.bss_descriptor.oper_mode = NULL; | ||
1526 | priv->curr_bss_params.bss_descriptor.oper_mode_offset = 0; | ||
1527 | |||
1528 | /* Disable 11ac by default. Enable it only where there | ||
1529 | * exist VHT_CAP IE in AP beacon | ||
1530 | */ | ||
1531 | priv->curr_bss_params.bss_descriptor.disable_11ac = true; | ||
1532 | |||
1533 | /* Make a copy of current BSSID descriptor */ | 1504 | /* Make a copy of current BSSID descriptor */ |
1534 | memcpy(&priv->curr_bss_params.bss_descriptor, bss_desc, | 1505 | memcpy(&priv->curr_bss_params.bss_descriptor, bss_desc, |
1535 | sizeof(priv->curr_bss_params.bss_descriptor)); | 1506 | sizeof(priv->curr_bss_params.bss_descriptor)); |
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 27729cfef151..311d0b26b81c 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
@@ -184,6 +184,11 @@ int mwifiex_fill_new_bss_desc(struct mwifiex_private *priv, | |||
184 | else | 184 | else |
185 | bss_desc->bss_mode = NL80211_IFTYPE_STATION; | 185 | bss_desc->bss_mode = NL80211_IFTYPE_STATION; |
186 | 186 | ||
187 | /* Disable 11ac by default. Enable it only where there | ||
188 | * exist VHT_CAP IE in AP beacon | ||
189 | */ | ||
190 | bss_desc->disable_11ac = true; | ||
191 | |||
187 | return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); | 192 | return mwifiex_update_bss_desc_with_ie(priv->adapter, bss_desc); |
188 | } | 193 | } |
189 | 194 | ||