aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wcn36xx/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/wcn36xx/main.c')
-rw-r--r--drivers/net/wireless/ath/wcn36xx/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c
index a27279c2c695..9a1db3bbec4e 100644
--- a/drivers/net/wireless/ath/wcn36xx/main.c
+++ b/drivers/net/wireless/ath/wcn36xx/main.c
@@ -26,14 +26,14 @@ module_param_named(debug_mask, wcn36xx_dbg_mask, uint, 0644);
26MODULE_PARM_DESC(debug_mask, "Debugging mask"); 26MODULE_PARM_DESC(debug_mask, "Debugging mask");
27 27
28#define CHAN2G(_freq, _idx) { \ 28#define CHAN2G(_freq, _idx) { \
29 .band = IEEE80211_BAND_2GHZ, \ 29 .band = NL80211_BAND_2GHZ, \
30 .center_freq = (_freq), \ 30 .center_freq = (_freq), \
31 .hw_value = (_idx), \ 31 .hw_value = (_idx), \
32 .max_power = 25, \ 32 .max_power = 25, \
33} 33}
34 34
35#define CHAN5G(_freq, _idx) { \ 35#define CHAN5G(_freq, _idx) { \
36 .band = IEEE80211_BAND_5GHZ, \ 36 .band = NL80211_BAND_5GHZ, \
37 .center_freq = (_freq), \ 37 .center_freq = (_freq), \
38 .hw_value = (_idx), \ 38 .hw_value = (_idx), \
39 .max_power = 25, \ 39 .max_power = 25, \
@@ -516,7 +516,7 @@ static void wcn36xx_sw_scan_complete(struct ieee80211_hw *hw,
516} 516}
517 517
518static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta, 518static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta,
519 enum ieee80211_band band) 519 enum nl80211_band band)
520{ 520{
521 int i, size; 521 int i, size;
522 u16 *rates_table; 522 u16 *rates_table;
@@ -529,7 +529,7 @@ static void wcn36xx_update_allowed_rates(struct ieee80211_sta *sta,
529 529
530 size = ARRAY_SIZE(sta_priv->supported_rates.dsss_rates); 530 size = ARRAY_SIZE(sta_priv->supported_rates.dsss_rates);
531 rates_table = sta_priv->supported_rates.dsss_rates; 531 rates_table = sta_priv->supported_rates.dsss_rates;
532 if (band == IEEE80211_BAND_2GHZ) { 532 if (band == NL80211_BAND_2GHZ) {
533 for (i = 0; i < size; i++) { 533 for (i = 0; i < size; i++) {
534 if (rates & 0x01) { 534 if (rates & 0x01) {
535 rates_table[i] = wcn_2ghz_rates[i].hw_value; 535 rates_table[i] = wcn_2ghz_rates[i].hw_value;
@@ -958,8 +958,8 @@ static int wcn36xx_init_ieee80211(struct wcn36xx *wcn)
958 BIT(NL80211_IFTYPE_ADHOC) | 958 BIT(NL80211_IFTYPE_ADHOC) |
959 BIT(NL80211_IFTYPE_MESH_POINT); 959 BIT(NL80211_IFTYPE_MESH_POINT);
960 960
961 wcn->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = &wcn_band_2ghz; 961 wcn->hw->wiphy->bands[NL80211_BAND_2GHZ] = &wcn_band_2ghz;
962 wcn->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = &wcn_band_5ghz; 962 wcn->hw->wiphy->bands[NL80211_BAND_5GHZ] = &wcn_band_5ghz;
963 963
964 wcn->hw->wiphy->cipher_suites = cipher_suites; 964 wcn->hw->wiphy->cipher_suites = cipher_suites;
965 wcn->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites); 965 wcn->hw->wiphy->n_cipher_suites = ARRAY_SIZE(cipher_suites);