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 | |
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')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 14 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/main.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/cfg80211.c | 18 | ||||
-rw-r--r-- | drivers/net/wireless/ath/wil6210/wmi.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | 11 | ||||
-rw-r--r-- | drivers/net/wireless/libertas/cfg.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/cfg80211.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/uap_event.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/rndis_wlan.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 2 |
10 files changed, 35 insertions, 39 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 7a5337877a0c..44dd6ef923cd 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -1799,20 +1799,20 @@ static int ath6kl_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1799 | 1799 | ||
1800 | if (vif->target_stats.rx_byte) { | 1800 | if (vif->target_stats.rx_byte) { |
1801 | sinfo->rx_bytes = vif->target_stats.rx_byte; | 1801 | sinfo->rx_bytes = vif->target_stats.rx_byte; |
1802 | sinfo->filled |= STATION_INFO_RX_BYTES64; | 1802 | sinfo->filled |= BIT(NL80211_STA_INFO_RX_BYTES64); |
1803 | sinfo->rx_packets = vif->target_stats.rx_pkt; | 1803 | sinfo->rx_packets = vif->target_stats.rx_pkt; |
1804 | sinfo->filled |= STATION_INFO_RX_PACKETS; | 1804 | sinfo->filled |= BIT(NL80211_STA_INFO_RX_PACKETS); |
1805 | } | 1805 | } |
1806 | 1806 | ||
1807 | if (vif->target_stats.tx_byte) { | 1807 | if (vif->target_stats.tx_byte) { |
1808 | sinfo->tx_bytes = vif->target_stats.tx_byte; | 1808 | sinfo->tx_bytes = vif->target_stats.tx_byte; |
1809 | sinfo->filled |= STATION_INFO_TX_BYTES64; | 1809 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BYTES64); |
1810 | sinfo->tx_packets = vif->target_stats.tx_pkt; | 1810 | sinfo->tx_packets = vif->target_stats.tx_pkt; |
1811 | sinfo->filled |= STATION_INFO_TX_PACKETS; | 1811 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_PACKETS); |
1812 | } | 1812 | } |
1813 | 1813 | ||
1814 | sinfo->signal = vif->target_stats.cs_rssi; | 1814 | sinfo->signal = vif->target_stats.cs_rssi; |
1815 | sinfo->filled |= STATION_INFO_SIGNAL; | 1815 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
1816 | 1816 | ||
1817 | rate = vif->target_stats.tx_ucast_rate; | 1817 | rate = vif->target_stats.tx_ucast_rate; |
1818 | 1818 | ||
@@ -1844,12 +1844,12 @@ static int ath6kl_get_station(struct wiphy *wiphy, struct net_device *dev, | |||
1844 | return 0; | 1844 | return 0; |
1845 | } | 1845 | } |
1846 | 1846 | ||
1847 | sinfo->filled |= STATION_INFO_TX_BITRATE; | 1847 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); |
1848 | 1848 | ||
1849 | if (test_bit(CONNECTED, &vif->flags) && | 1849 | if (test_bit(CONNECTED, &vif->flags) && |
1850 | test_bit(DTIM_PERIOD_AVAIL, &vif->flags) && | 1850 | test_bit(DTIM_PERIOD_AVAIL, &vif->flags) && |
1851 | vif->nw_type == INFRA_NETWORK) { | 1851 | vif->nw_type == INFRA_NETWORK) { |
1852 | sinfo->filled |= STATION_INFO_BSS_PARAM; | 1852 | sinfo->filled |= BIT(NL80211_STA_INFO_BSS_PARAM); |
1853 | sinfo->bss_param.flags = 0; | 1853 | sinfo->bss_param.flags = 0; |
1854 | sinfo->bss_param.dtim_period = vif->assoc_bss_dtim_period; | 1854 | sinfo->bss_param.dtim_period = vif->assoc_bss_dtim_period; |
1855 | sinfo->bss_param.beacon_interval = vif->assoc_bss_beacon_int; | 1855 | sinfo->bss_param.beacon_interval = vif->assoc_bss_beacon_int; |
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index 933aef025698..b42ba46b5030 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c | |||
@@ -488,7 +488,6 @@ void ath6kl_connect_ap_mode_sta(struct ath6kl_vif *vif, u16 aid, u8 *mac_addr, | |||
488 | 488 | ||
489 | sinfo.assoc_req_ies = ies; | 489 | sinfo.assoc_req_ies = ies; |
490 | sinfo.assoc_req_ies_len = ies_len; | 490 | sinfo.assoc_req_ies_len = ies_len; |
491 | sinfo.filled |= STATION_INFO_ASSOC_REQ_IES; | ||
492 | 491 | ||
493 | cfg80211_new_sta(vif->ndev, mac_addr, &sinfo, GFP_KERNEL); | 492 | cfg80211_new_sta(vif->ndev, mac_addr, &sinfo, GFP_KERNEL); |
494 | 493 | ||
diff --git a/drivers/net/wireless/ath/wil6210/cfg80211.c b/drivers/net/wireless/ath/wil6210/cfg80211.c index 38332a6dfb3a..e72a95d1ced6 100644 --- a/drivers/net/wireless/ath/wil6210/cfg80211.c +++ b/drivers/net/wireless/ath/wil6210/cfg80211.c | |||
@@ -142,14 +142,14 @@ int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid, | |||
142 | 142 | ||
143 | sinfo->generation = wil->sinfo_gen; | 143 | sinfo->generation = wil->sinfo_gen; |
144 | 144 | ||
145 | sinfo->filled = STATION_INFO_RX_BYTES | | 145 | sinfo->filled = BIT(NL80211_STA_INFO_RX_BYTES) | |
146 | STATION_INFO_TX_BYTES | | 146 | BIT(NL80211_STA_INFO_TX_BYTES) | |
147 | STATION_INFO_RX_PACKETS | | 147 | BIT(NL80211_STA_INFO_RX_PACKETS) | |
148 | STATION_INFO_TX_PACKETS | | 148 | BIT(NL80211_STA_INFO_TX_PACKETS) | |
149 | STATION_INFO_RX_BITRATE | | 149 | BIT(NL80211_STA_INFO_RX_BITRATE) | |
150 | STATION_INFO_TX_BITRATE | | 150 | BIT(NL80211_STA_INFO_TX_BITRATE) | |
151 | STATION_INFO_RX_DROP_MISC | | 151 | BIT(NL80211_STA_INFO_RX_DROP_MISC) | |
152 | STATION_INFO_TX_FAILED; | 152 | BIT(NL80211_STA_INFO_TX_FAILED); |
153 | 153 | ||
154 | sinfo->txrate.flags = RATE_INFO_FLAGS_MCS | RATE_INFO_FLAGS_60G; | 154 | sinfo->txrate.flags = RATE_INFO_FLAGS_MCS | RATE_INFO_FLAGS_60G; |
155 | sinfo->txrate.mcs = le16_to_cpu(reply.evt.bf_mcs); | 155 | sinfo->txrate.mcs = le16_to_cpu(reply.evt.bf_mcs); |
@@ -163,7 +163,7 @@ int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid, | |||
163 | sinfo->tx_failed = stats->tx_errors; | 163 | sinfo->tx_failed = stats->tx_errors; |
164 | 164 | ||
165 | if (test_bit(wil_status_fwconnected, &wil->status)) { | 165 | if (test_bit(wil_status_fwconnected, &wil->status)) { |
166 | sinfo->filled |= STATION_INFO_SIGNAL; | 166 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
167 | sinfo->signal = reply.evt.sqi; | 167 | sinfo->signal = reply.evt.sqi; |
168 | } | 168 | } |
169 | 169 | ||
diff --git a/drivers/net/wireless/ath/wil6210/wmi.c b/drivers/net/wireless/ath/wil6210/wmi.c index 63476c86cd0e..899754920955 100644 --- a/drivers/net/wireless/ath/wil6210/wmi.c +++ b/drivers/net/wireless/ath/wil6210/wmi.c | |||
@@ -457,7 +457,6 @@ static void wmi_evt_connect(struct wil6210_priv *wil, int id, void *d, int len) | |||
457 | if (assoc_req_ie) { | 457 | if (assoc_req_ie) { |
458 | sinfo.assoc_req_ies = assoc_req_ie; | 458 | sinfo.assoc_req_ies = assoc_req_ie; |
459 | sinfo.assoc_req_ies_len = assoc_req_ielen; | 459 | sinfo.assoc_req_ies_len = assoc_req_ielen; |
460 | sinfo.filled |= STATION_INFO_ASSOC_REQ_IES; | ||
461 | } | 460 | } |
462 | 461 | ||
463 | cfg80211_new_sta(ndev, evt->bssid, &sinfo, GFP_KERNEL); | 462 | cfg80211_new_sta(ndev, evt->bssid, &sinfo, GFP_KERNEL); |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c index 3aecc5f48719..4a88b2381a68 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c | |||
@@ -2333,10 +2333,10 @@ brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, | |||
2333 | brcmf_err("GET STA INFO failed, %d\n", err); | 2333 | brcmf_err("GET STA INFO failed, %d\n", err); |
2334 | goto done; | 2334 | goto done; |
2335 | } | 2335 | } |
2336 | sinfo->filled = STATION_INFO_INACTIVE_TIME; | 2336 | sinfo->filled = BIT(NL80211_STA_INFO_INACTIVE_TIME); |
2337 | sinfo->inactive_time = le32_to_cpu(sta_info_le.idle) * 1000; | 2337 | sinfo->inactive_time = le32_to_cpu(sta_info_le.idle) * 1000; |
2338 | if (le32_to_cpu(sta_info_le.flags) & BRCMF_STA_ASSOC) { | 2338 | if (le32_to_cpu(sta_info_le.flags) & BRCMF_STA_ASSOC) { |
2339 | sinfo->filled |= STATION_INFO_CONNECTED_TIME; | 2339 | sinfo->filled |= BIT(NL80211_STA_INFO_CONNECTED_TIME); |
2340 | sinfo->connected_time = le32_to_cpu(sta_info_le.in); | 2340 | sinfo->connected_time = le32_to_cpu(sta_info_le.in); |
2341 | } | 2341 | } |
2342 | brcmf_dbg(TRACE, "STA idle time : %d ms, connected time :%d sec\n", | 2342 | brcmf_dbg(TRACE, "STA idle time : %d ms, connected time :%d sec\n", |
@@ -2354,7 +2354,7 @@ brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, | |||
2354 | brcmf_err("Could not get rate (%d)\n", err); | 2354 | brcmf_err("Could not get rate (%d)\n", err); |
2355 | goto done; | 2355 | goto done; |
2356 | } else { | 2356 | } else { |
2357 | sinfo->filled |= STATION_INFO_TX_BITRATE; | 2357 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); |
2358 | sinfo->txrate.legacy = rate * 5; | 2358 | sinfo->txrate.legacy = rate * 5; |
2359 | brcmf_dbg(CONN, "Rate %d Mbps\n", rate / 2); | 2359 | brcmf_dbg(CONN, "Rate %d Mbps\n", rate / 2); |
2360 | } | 2360 | } |
@@ -2369,7 +2369,7 @@ brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, | |||
2369 | goto done; | 2369 | goto done; |
2370 | } else { | 2370 | } else { |
2371 | rssi = le32_to_cpu(scb_val.val); | 2371 | rssi = le32_to_cpu(scb_val.val); |
2372 | sinfo->filled |= STATION_INFO_SIGNAL; | 2372 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
2373 | sinfo->signal = rssi; | 2373 | sinfo->signal = rssi; |
2374 | brcmf_dbg(CONN, "RSSI %d dBm\n", rssi); | 2374 | brcmf_dbg(CONN, "RSSI %d dBm\n", rssi); |
2375 | } | 2375 | } |
@@ -2396,7 +2396,7 @@ brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, | |||
2396 | brcmf_dbg(CONN, "DTIM peroid %d\n", | 2396 | brcmf_dbg(CONN, "DTIM peroid %d\n", |
2397 | dtim_period); | 2397 | dtim_period); |
2398 | } | 2398 | } |
2399 | sinfo->filled |= STATION_INFO_BSS_PARAM; | 2399 | sinfo->filled |= BIT(NL80211_STA_INFO_BSS_PARAM); |
2400 | } | 2400 | } |
2401 | } else | 2401 | } else |
2402 | err = -EPERM; | 2402 | err = -EPERM; |
@@ -4778,7 +4778,6 @@ brcmf_notify_connect_status_ap(struct brcmf_cfg80211_info *cfg, | |||
4778 | if (((event == BRCMF_E_ASSOC_IND) || (event == BRCMF_E_REASSOC_IND)) && | 4778 | if (((event == BRCMF_E_ASSOC_IND) || (event == BRCMF_E_REASSOC_IND)) && |
4779 | (reason == BRCMF_E_STATUS_SUCCESS)) { | 4779 | (reason == BRCMF_E_STATUS_SUCCESS)) { |
4780 | memset(&sinfo, 0, sizeof(sinfo)); | 4780 | memset(&sinfo, 0, sizeof(sinfo)); |
4781 | sinfo.filled = STATION_INFO_ASSOC_REQ_IES; | ||
4782 | if (!data) { | 4781 | if (!data) { |
4783 | brcmf_err("No IEs present in ASSOC/REASSOC_IND"); | 4782 | brcmf_err("No IEs present in ASSOC/REASSOC_IND"); |
4784 | return -EINVAL; | 4783 | return -EINVAL; |
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 | } |
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c index 8bd446b69658..71312ff52703 100644 --- a/drivers/net/wireless/mwifiex/cfg80211.c +++ b/drivers/net/wireless/mwifiex/cfg80211.c | |||
@@ -910,10 +910,10 @@ mwifiex_dump_station_info(struct mwifiex_private *priv, | |||
910 | { | 910 | { |
911 | u32 rate; | 911 | u32 rate; |
912 | 912 | ||
913 | sinfo->filled = STATION_INFO_RX_BYTES | STATION_INFO_TX_BYTES | | 913 | sinfo->filled = BIT(NL80211_STA_INFO_RX_BYTES) | BIT(NL80211_STA_INFO_TX_BYTES) | |
914 | STATION_INFO_RX_PACKETS | STATION_INFO_TX_PACKETS | | 914 | BIT(NL80211_STA_INFO_RX_PACKETS) | BIT(NL80211_STA_INFO_TX_PACKETS) | |
915 | STATION_INFO_TX_BITRATE | | 915 | BIT(NL80211_STA_INFO_TX_BITRATE) | |
916 | STATION_INFO_SIGNAL | STATION_INFO_SIGNAL_AVG; | 916 | BIT(NL80211_STA_INFO_SIGNAL) | BIT(NL80211_STA_INFO_SIGNAL_AVG); |
917 | 917 | ||
918 | /* Get signal information from the firmware */ | 918 | /* Get signal information from the firmware */ |
919 | if (mwifiex_send_cmd(priv, HostCmd_CMD_RSSI_INFO, | 919 | if (mwifiex_send_cmd(priv, HostCmd_CMD_RSSI_INFO, |
@@ -944,7 +944,7 @@ mwifiex_dump_station_info(struct mwifiex_private *priv, | |||
944 | sinfo->txrate.legacy = rate * 5; | 944 | sinfo->txrate.legacy = rate * 5; |
945 | 945 | ||
946 | if (priv->bss_mode == NL80211_IFTYPE_STATION) { | 946 | if (priv->bss_mode == NL80211_IFTYPE_STATION) { |
947 | sinfo->filled |= STATION_INFO_BSS_PARAM; | 947 | sinfo->filled |= BIT(NL80211_STA_INFO_BSS_PARAM); |
948 | sinfo->bss_param.flags = 0; | 948 | sinfo->bss_param.flags = 0; |
949 | if (priv->curr_bss_params.bss_descriptor.cap_info_bitmap & | 949 | if (priv->curr_bss_params.bss_descriptor.cap_info_bitmap & |
950 | WLAN_CAPABILITY_SHORT_PREAMBLE) | 950 | WLAN_CAPABILITY_SHORT_PREAMBLE) |
diff --git a/drivers/net/wireless/mwifiex/uap_event.c b/drivers/net/wireless/mwifiex/uap_event.c index c54a537e31fb..3b3a970e2086 100644 --- a/drivers/net/wireless/mwifiex/uap_event.c +++ b/drivers/net/wireless/mwifiex/uap_event.c | |||
@@ -68,7 +68,6 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv) | |||
68 | len = ETH_ALEN; | 68 | len = ETH_ALEN; |
69 | 69 | ||
70 | if (len != -1) { | 70 | if (len != -1) { |
71 | sinfo.filled = STATION_INFO_ASSOC_REQ_IES; | ||
72 | sinfo.assoc_req_ies = &event->data[len]; | 71 | sinfo.assoc_req_ies = &event->data[len]; |
73 | len = (u8 *)sinfo.assoc_req_ies - | 72 | len = (u8 *)sinfo.assoc_req_ies - |
74 | (u8 *)&event->frame_control; | 73 | (u8 *)&event->frame_control; |
diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c index 1a4facd1fbf3..60d44ce9c017 100644 --- a/drivers/net/wireless/rndis_wlan.c +++ b/drivers/net/wireless/rndis_wlan.c | |||
@@ -2478,7 +2478,7 @@ static void rndis_fill_station_info(struct usbnet *usbdev, | |||
2478 | ret = rndis_query_oid(usbdev, RNDIS_OID_GEN_LINK_SPEED, &linkspeed, &len); | 2478 | ret = rndis_query_oid(usbdev, RNDIS_OID_GEN_LINK_SPEED, &linkspeed, &len); |
2479 | if (ret == 0) { | 2479 | if (ret == 0) { |
2480 | sinfo->txrate.legacy = le32_to_cpu(linkspeed) / 1000; | 2480 | sinfo->txrate.legacy = le32_to_cpu(linkspeed) / 1000; |
2481 | sinfo->filled |= STATION_INFO_TX_BITRATE; | 2481 | sinfo->filled |= BIT(NL80211_STA_INFO_TX_BITRATE); |
2482 | } | 2482 | } |
2483 | 2483 | ||
2484 | len = sizeof(rssi); | 2484 | len = sizeof(rssi); |
@@ -2486,7 +2486,7 @@ static void rndis_fill_station_info(struct usbnet *usbdev, | |||
2486 | &rssi, &len); | 2486 | &rssi, &len); |
2487 | if (ret == 0) { | 2487 | if (ret == 0) { |
2488 | sinfo->signal = level_to_qual(le32_to_cpu(rssi)); | 2488 | sinfo->signal = level_to_qual(le32_to_cpu(rssi)); |
2489 | sinfo->filled |= STATION_INFO_SIGNAL; | 2489 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
2490 | } | 2490 | } |
2491 | } | 2491 | } |
2492 | 2492 | ||
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 8d11b0ca412c..a2133b1fd631 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -5401,7 +5401,7 @@ static void wlcore_op_sta_statistics(struct ieee80211_hw *hw, | |||
5401 | if (ret < 0) | 5401 | if (ret < 0) |
5402 | goto out_sleep; | 5402 | goto out_sleep; |
5403 | 5403 | ||
5404 | sinfo->filled |= STATION_INFO_SIGNAL; | 5404 | sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL); |
5405 | sinfo->signal = rssi_dbm; | 5405 | sinfo->signal = rssi_dbm; |
5406 | 5406 | ||
5407 | out_sleep: | 5407 | out_sleep: |