diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-11-17 08:08:11 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-01-08 09:28:10 -0500 |
commit | 319090bf6c75e3ad42a8c74973be5e78ae4f948f (patch) | |
tree | 499fe25951bd986948c2b0e0552dfeca0784ae3a /drivers/net/wireless/libertas/cfg.c | |
parent | 2b9a7e1bac24df8ddb0713ad1e5807a7243bcab0 (diff) |
cfg80211: remove enum station_info_flags
This is really just duplicating the list of information that's
already available in the nl80211 attribute, so remove the list.
Two small changes are needed:
* remove STATION_INFO_ASSOC_REQ_IES complete, but the length
(assoc_req_ies_len) can be used instead
* add NL80211_STA_INFO_RX_DROP_MISC which exists internally
but not in nl80211 yet
This gets rid of the duplicate maintenance of the two lists.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cfg.c')
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c index 34f09ef90bb3..a92985a6ea21 100644 --- a/drivers/net/wireless/libertas/cfg.c +++ b/drivers/net/wireless/libertas/cfg.c | |||
@@ -1616,10 +1616,10 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1616 | 1616 | ||
1617 | lbs_deb_enter(LBS_DEB_CFG80211); | 1617 | lbs_deb_enter(LBS_DEB_CFG80211); |
1618 | 1618 | ||
1619 | sinfo->filled |= STATION_INFO_TX_BYTES | | 1619 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BYTES) | |
1620 | STATION_INFO_TX_PACKETS | | 1620 | BIT(NL80211_STA_INFO_TX_PACKETS) | |
1621 | STATION_INFO_RX_BYTES | | 1621 | BIT(NL80211_STA_INFO_RX_BYTES) | |
1622 | STATION_INFO_RX_PACKETS; | 1622 | BIT(NL80211_STA_INFO_RX_PACKETS); |
1623 | sinfo->tx_bytes = priv->dev->stats.tx_bytes; | 1623 | sinfo->tx_bytes = priv->dev->stats.tx_bytes; |
1624 | sinfo->tx_packets = priv->dev->stats.tx_packets; | 1624 | sinfo->tx_packets = priv->dev->stats.tx_packets; |
1625 | sinfo->rx_bytes = priv->dev->stats.rx_bytes; | 1625 | sinfo->rx_bytes = priv->dev->stats.rx_bytes; |
@@ -1629,14 +1629,14 @@ static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1629 | ret = lbs_get_rssi(priv, &signal, &noise); | 1629 | ret = lbs_get_rssi(priv, &signal, &noise); |
1630 | if (ret == 0) { | 1630 | if (ret == 0) { |
1631 | sinfo->signal = signal; | 1631 | sinfo->signal = signal; |
1632 | sinfo->filled |= STATION_INFO_SIGNAL; | 1632 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
1633 | } | 1633 | } |
1634 | 1634 | ||
1635 | /* Convert priv->cur_rate from hw_value to NL80211 value */ | 1635 | /* Convert priv->cur_rate from hw_value to NL80211 value */ |
1636 | for (i = 0; i < ARRAY_SIZE(lbs_rates); i++) { | 1636 | for (i = 0; i < ARRAY_SIZE(lbs_rates); i++) { |
1637 | if (priv->cur_rate == lbs_rates[i].hw_value) { | 1637 | if (priv->cur_rate == lbs_rates[i].hw_value) { |
1638 | sinfo->txrate.legacy = lbs_rates[i].bitrate; | 1638 | sinfo->txrate.legacy = lbs_rates[i].bitrate; |
1639 | sinfo->filled |= STATION_INFO_TX_BITRATE; | 1639 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); |
1640 | break; | 1640 | break; |
1641 | } | 1641 | } |
1642 | } | 1642 | } |