qcacld-3.0: Fill correct info flags for station info
When get station command received by driver, host is filling rx_mpdus and fcs_error count into output station info buffer but corresponding flags are not getting set because of which user space is not able to parse these values. To avoid this issue, set corresponding flags for rx_mpdus and fcs_error count in stainfo buffer. Change-Id: I0801501d0ede15c9c818d677b5e85e47963f4cff CRs-Fixed: 2477654
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
3b2821951d
commit
14923e6271
@@ -56,6 +56,8 @@
|
||||
#define HDD_INFO_RX_BYTES64 0
|
||||
#define HDD_INFO_INACTIVE_TIME 0
|
||||
#define HDD_INFO_CONNECTED_TIME 0
|
||||
#define HDD_INFO_RX_MPDUS 0
|
||||
#define HDD_INFO_FCS_ERROR_COUNT 0
|
||||
#else
|
||||
#define HDD_INFO_SIGNAL BIT(NL80211_STA_INFO_SIGNAL)
|
||||
#define HDD_INFO_SIGNAL_AVG BIT(NL80211_STA_INFO_SIGNAL_AVG)
|
||||
@@ -72,6 +74,8 @@
|
||||
#define HDD_INFO_RX_BYTES64 BIT(NL80211_STA_INFO_RX_BYTES64)
|
||||
#define HDD_INFO_INACTIVE_TIME BIT(NL80211_STA_INFO_INACTIVE_TIME)
|
||||
#define HDD_INFO_CONNECTED_TIME BIT(NL80211_STA_INFO_CONNECTED_TIME)
|
||||
#define HDD_INFO_RX_MPDUS BIT(NL80211_STA_INFO_RX_MPDUS)
|
||||
#define HDD_INFO_FCS_ERROR_COUNT BIT(NL80211_STA_INFO_FCS_ERROR_COUNT)
|
||||
#endif /* kernel version less than 4.0.0 && no_backport */
|
||||
|
||||
/* 11B, 11G Rate table include Basic rate and Extended rate
|
||||
@@ -4360,6 +4364,7 @@ static void hdd_fill_fcs_and_mpdu_count(struct hdd_adapter *adapter,
|
||||
sinfo->fcs_err_count = adapter->hdd_stats.peer_stats.fcs_count;
|
||||
hdd_debug("RX mpdu count %d fcs_err_count %d",
|
||||
sinfo->rx_mpdu_count, sinfo->fcs_err_count);
|
||||
sinfo->filled |= HDD_INFO_FCS_ERROR_COUNT | HDD_INFO_RX_MPDUS;
|
||||
}
|
||||
#else
|
||||
static void hdd_fill_fcs_and_mpdu_count(struct hdd_adapter *adapter,
|
||||
|
Reference in New Issue
Block a user