aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/ath/carl9170/fw.c6
-rw-r--r--drivers/net/wireless/ath/carl9170/main.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/carl9170/fw.c b/drivers/net/wireless/ath/carl9170/fw.c
index aaebecd19e59..5a8a9f891dd8 100644
--- a/drivers/net/wireless/ath/carl9170/fw.c
+++ b/drivers/net/wireless/ath/carl9170/fw.c
@@ -354,7 +354,11 @@ static int carl9170_fw(struct ar9170 *ar, const __u8 *data, size_t len)
354 354
355 ar->hw->wiphy->interface_modes |= if_comb_types; 355 ar->hw->wiphy->interface_modes |= if_comb_types;
356 356
357 ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL; 357 ar->hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
358
359 /* As IBSS Encryption is software-based, IBSS RSN is supported. */
360 ar->hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL |
361 WIPHY_FLAG_IBSS_RSN | WIPHY_FLAG_SUPPORTS_TDLS;
358 362
359#undef SUPPORTED 363#undef SUPPORTED
360 return carl9170_fw_tx_sequence(ar); 364 return carl9170_fw_tx_sequence(ar);
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c
index 9d2051aeb782..ce8ae1e6bd3b 100644
--- a/drivers/net/wireless/ath/carl9170/main.c
+++ b/drivers/net/wireless/ath/carl9170/main.c
@@ -1807,10 +1807,6 @@ void *carl9170_alloc(size_t priv_size)
1807 for (i = 0; i < ARRAY_SIZE(ar->noise); i++) 1807 for (i = 0; i < ARRAY_SIZE(ar->noise); i++)
1808 ar->noise[i] = -95; /* ATH_DEFAULT_NOISE_FLOOR */ 1808 ar->noise[i] = -95; /* ATH_DEFAULT_NOISE_FLOOR */
1809 1809
1810 hw->wiphy->flags &= ~WIPHY_FLAG_PS_ON_BY_DEFAULT;
1811
1812 /* As IBSS Encryption is software-based, IBSS RSN is supported. */
1813 hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;
1814 return ar; 1810 return ar;
1815 1811
1816err_nomem: 1812err_nomem: