aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex
diff options
context:
space:
mode:
authorAmitkumar Karwar <akarwar@marvell.com>2012-03-15 23:51:50 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-04-09 16:05:59 -0400
commit7013d3e267ef41b3dfdfedbbe6c3d3e666f0f138 (patch)
tree87d6f4e5fe467835506ad50b1ba71e968f8511a1 /drivers/net/wireless/mwifiex
parent958a4a862f41eee27091b726de7ffa08c8488ce9 (diff)
mwifiex: support STATION_INFO_SIGNAL_AVG
This patch adds the support for updating average signal information in dump_station(). Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 9cf8d53464f..96c1e3b24da 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -519,9 +519,9 @@ mwifiex_dump_station_info(struct mwifiex_private *priv,
519 struct mwifiex_rate_cfg rate; 519 struct mwifiex_rate_cfg rate;
520 520
521 sinfo->filled = STATION_INFO_RX_BYTES | STATION_INFO_TX_BYTES | 521 sinfo->filled = STATION_INFO_RX_BYTES | STATION_INFO_TX_BYTES |
522 STATION_INFO_RX_PACKETS | 522 STATION_INFO_RX_PACKETS | STATION_INFO_TX_PACKETS |
523 STATION_INFO_TX_PACKETS 523 STATION_INFO_TX_BITRATE |
524 | STATION_INFO_SIGNAL | STATION_INFO_TX_BITRATE; 524 STATION_INFO_SIGNAL | STATION_INFO_SIGNAL_AVG;
525 525
526 /* Get signal information from the firmware */ 526 /* Get signal information from the firmware */
527 if (mwifiex_send_cmd_sync(priv, HostCmd_CMD_RSSI_INFO, 527 if (mwifiex_send_cmd_sync(priv, HostCmd_CMD_RSSI_INFO,
@@ -555,6 +555,7 @@ mwifiex_dump_station_info(struct mwifiex_private *priv,
555 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI; 555 sinfo->txrate.flags |= RATE_INFO_FLAGS_SHORT_GI;
556 } 556 }
557 557
558 sinfo->signal_avg = priv->bcn_rssi_avg;
558 sinfo->rx_bytes = priv->stats.rx_bytes; 559 sinfo->rx_bytes = priv->stats.rx_bytes;
559 sinfo->tx_bytes = priv->stats.tx_bytes; 560 sinfo->tx_bytes = priv->stats.tx_bytes;
560 sinfo->rx_packets = priv->stats.rx_packets; 561 sinfo->rx_packets = priv->stats.rx_packets;