aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex/cfg80211.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/cfg80211.c')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/cfg80211.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
index 49661e087811..6db202fa7157 100644
--- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c
@@ -474,7 +474,7 @@ int mwifiex_send_domain_info_cmd_fw(struct wiphy *wiphy)
474 u8 no_of_parsed_chan = 0; 474 u8 no_of_parsed_chan = 0;
475 u8 first_chan = 0, next_chan = 0, max_pwr = 0; 475 u8 first_chan = 0, next_chan = 0, max_pwr = 0;
476 u8 i, flag = 0; 476 u8 i, flag = 0;
477 enum ieee80211_band band; 477 enum nl80211_band band;
478 struct ieee80211_supported_band *sband; 478 struct ieee80211_supported_band *sband;
479 struct ieee80211_channel *ch; 479 struct ieee80211_channel *ch;
480 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy); 480 struct mwifiex_adapter *adapter = mwifiex_cfg80211_get_adapter(wiphy);
@@ -1410,7 +1410,7 @@ mwifiex_cfg80211_dump_survey(struct wiphy *wiphy, struct net_device *dev,
1410{ 1410{
1411 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); 1411 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
1412 struct mwifiex_chan_stats *pchan_stats = priv->adapter->chan_stats; 1412 struct mwifiex_chan_stats *pchan_stats = priv->adapter->chan_stats;
1413 enum ieee80211_band band; 1413 enum nl80211_band band;
1414 1414
1415 mwifiex_dbg(priv->adapter, DUMP, "dump_survey idx=%d\n", idx); 1415 mwifiex_dbg(priv->adapter, DUMP, "dump_survey idx=%d\n", idx);
1416 1416
@@ -1586,7 +1586,7 @@ static int mwifiex_cfg80211_set_bitrate_mask(struct wiphy *wiphy,
1586{ 1586{
1587 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); 1587 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
1588 u16 bitmap_rates[MAX_BITMAP_RATES_SIZE]; 1588 u16 bitmap_rates[MAX_BITMAP_RATES_SIZE];
1589 enum ieee80211_band band; 1589 enum nl80211_band band;
1590 struct mwifiex_adapter *adapter = priv->adapter; 1590 struct mwifiex_adapter *adapter = priv->adapter;
1591 1591
1592 if (!priv->media_connected) { 1592 if (!priv->media_connected) {
@@ -1600,11 +1600,11 @@ static int mwifiex_cfg80211_set_bitrate_mask(struct wiphy *wiphy,
1600 memset(bitmap_rates, 0, sizeof(bitmap_rates)); 1600 memset(bitmap_rates, 0, sizeof(bitmap_rates));
1601 1601
1602 /* Fill HR/DSSS rates. */ 1602 /* Fill HR/DSSS rates. */
1603 if (band == IEEE80211_BAND_2GHZ) 1603 if (band == NL80211_BAND_2GHZ)
1604 bitmap_rates[0] = mask->control[band].legacy & 0x000f; 1604 bitmap_rates[0] = mask->control[band].legacy & 0x000f;
1605 1605
1606 /* Fill OFDM rates */ 1606 /* Fill OFDM rates */
1607 if (band == IEEE80211_BAND_2GHZ) 1607 if (band == NL80211_BAND_2GHZ)
1608 bitmap_rates[1] = (mask->control[band].legacy & 0x0ff0) >> 4; 1608 bitmap_rates[1] = (mask->control[band].legacy & 0x0ff0) >> 4;
1609 else 1609 else
1610 bitmap_rates[1] = mask->control[band].legacy; 1610 bitmap_rates[1] = mask->control[band].legacy;
@@ -1771,7 +1771,7 @@ mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant)
1771 } else { 1771 } else {
1772 struct ieee80211_sta_ht_cap *ht_info; 1772 struct ieee80211_sta_ht_cap *ht_info;
1773 int rx_mcs_supp; 1773 int rx_mcs_supp;
1774 enum ieee80211_band band; 1774 enum nl80211_band band;
1775 1775
1776 if ((tx_ant == 0x1 && rx_ant == 0x1)) { 1776 if ((tx_ant == 0x1 && rx_ant == 0x1)) {
1777 adapter->user_dev_mcs_support = HT_STREAM_1X1; 1777 adapter->user_dev_mcs_support = HT_STREAM_1X1;
@@ -1785,7 +1785,7 @@ mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, u32 tx_ant, u32 rx_ant)
1785 MWIFIEX_11AC_MCS_MAP_2X2; 1785 MWIFIEX_11AC_MCS_MAP_2X2;
1786 } 1786 }
1787 1787
1788 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { 1788 for (band = 0; band < NUM_NL80211_BANDS; band++) {
1789 if (!adapter->wiphy->bands[band]) 1789 if (!adapter->wiphy->bands[band])
1790 continue; 1790 continue;
1791 1791
@@ -1997,7 +1997,7 @@ static int mwifiex_cfg80211_inform_ibss_bss(struct mwifiex_private *priv)
1997 struct cfg80211_bss *bss; 1997 struct cfg80211_bss *bss;
1998 int ie_len; 1998 int ie_len;
1999 u8 ie_buf[IEEE80211_MAX_SSID_LEN + sizeof(struct ieee_types_header)]; 1999 u8 ie_buf[IEEE80211_MAX_SSID_LEN + sizeof(struct ieee_types_header)];
2000 enum ieee80211_band band; 2000 enum nl80211_band band;
2001 2001
2002 if (mwifiex_get_bss_info(priv, &bss_info)) 2002 if (mwifiex_get_bss_info(priv, &bss_info))
2003 return -1; 2003 return -1;
@@ -2271,7 +2271,7 @@ static int mwifiex_set_ibss_params(struct mwifiex_private *priv,
2271 int index = 0, i; 2271 int index = 0, i;
2272 u8 config_bands = 0; 2272 u8 config_bands = 0;
2273 2273
2274 if (params->chandef.chan->band == IEEE80211_BAND_2GHZ) { 2274 if (params->chandef.chan->band == NL80211_BAND_2GHZ) {
2275 if (!params->basic_rates) { 2275 if (!params->basic_rates) {
2276 config_bands = BAND_B | BAND_G; 2276 config_bands = BAND_B | BAND_G;
2277 } else { 2277 } else {
@@ -2859,18 +2859,18 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
2859 mwifiex_init_priv_params(priv, dev); 2859 mwifiex_init_priv_params(priv, dev);
2860 priv->netdev = dev; 2860 priv->netdev = dev;
2861 2861
2862 mwifiex_setup_ht_caps(&wiphy->bands[IEEE80211_BAND_2GHZ]->ht_cap, priv); 2862 mwifiex_setup_ht_caps(&wiphy->bands[NL80211_BAND_2GHZ]->ht_cap, priv);
2863 if (adapter->is_hw_11ac_capable) 2863 if (adapter->is_hw_11ac_capable)
2864 mwifiex_setup_vht_caps( 2864 mwifiex_setup_vht_caps(
2865 &wiphy->bands[IEEE80211_BAND_2GHZ]->vht_cap, priv); 2865 &wiphy->bands[NL80211_BAND_2GHZ]->vht_cap, priv);
2866 2866
2867 if (adapter->config_bands & BAND_A) 2867 if (adapter->config_bands & BAND_A)
2868 mwifiex_setup_ht_caps( 2868 mwifiex_setup_ht_caps(
2869 &wiphy->bands[IEEE80211_BAND_5GHZ]->ht_cap, priv); 2869 &wiphy->bands[NL80211_BAND_5GHZ]->ht_cap, priv);
2870 2870
2871 if ((adapter->config_bands & BAND_A) && adapter->is_hw_11ac_capable) 2871 if ((adapter->config_bands & BAND_A) && adapter->is_hw_11ac_capable)
2872 mwifiex_setup_vht_caps( 2872 mwifiex_setup_vht_caps(
2873 &wiphy->bands[IEEE80211_BAND_5GHZ]->vht_cap, priv); 2873 &wiphy->bands[NL80211_BAND_5GHZ]->vht_cap, priv);
2874 2874
2875 dev_net_set(dev, wiphy_net(wiphy)); 2875 dev_net_set(dev, wiphy_net(wiphy));
2876 dev->ieee80211_ptr = &priv->wdev; 2876 dev->ieee80211_ptr = &priv->wdev;
@@ -3821,7 +3821,7 @@ static int mwifiex_cfg80211_get_channel(struct wiphy *wiphy,
3821 struct ieee80211_channel *chan; 3821 struct ieee80211_channel *chan;
3822 u8 second_chan_offset; 3822 u8 second_chan_offset;
3823 enum nl80211_channel_type chan_type; 3823 enum nl80211_channel_type chan_type;
3824 enum ieee80211_band band; 3824 enum nl80211_band band;
3825 int freq; 3825 int freq;
3826 int ret = -ENODATA; 3826 int ret = -ENODATA;
3827 3827
@@ -4053,11 +4053,11 @@ int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter)
4053 BIT(NL80211_IFTYPE_P2P_GO) | 4053 BIT(NL80211_IFTYPE_P2P_GO) |
4054 BIT(NL80211_IFTYPE_AP); 4054 BIT(NL80211_IFTYPE_AP);
4055 4055
4056 wiphy->bands[IEEE80211_BAND_2GHZ] = &mwifiex_band_2ghz; 4056 wiphy->bands[NL80211_BAND_2GHZ] = &mwifiex_band_2ghz;
4057 if (adapter->config_bands & BAND_A) 4057 if (adapter->config_bands & BAND_A)
4058 wiphy->bands[IEEE80211_BAND_5GHZ] = &mwifiex_band_5ghz; 4058 wiphy->bands[NL80211_BAND_5GHZ] = &mwifiex_band_5ghz;
4059 else 4059 else
4060 wiphy->bands[IEEE80211_BAND_5GHZ] = NULL; 4060 wiphy->bands[NL80211_BAND_5GHZ] = NULL;
4061 4061
4062 if (adapter->drcs_enabled && ISSUPP_DRCS_ENABLED(adapter->fw_cap_info)) 4062 if (adapter->drcs_enabled && ISSUPP_DRCS_ENABLED(adapter->fw_cap_info))
4063 wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta_drcs; 4063 wiphy->iface_combinations = &mwifiex_iface_comb_ap_sta_drcs;