diff options
| author | c_zding <c_zding@qti.qualcomm.com> | 2016-06-29 10:23:17 +0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-29 13:26:48 +0530 |
| commit | 5475eb3bc83f718f742d73879e54bd560e54fbec (patch) | |
| tree | 165834eeb8a9f3abb0f68a9823559db28880ee5b | |
| parent | 0c675975140d07b3decaf4acc06323f4f4ef899a (diff) | |
qcacld-2.0: Clean up enum station_info_flags for Kernel upgrade
The station_info_flags is removed from cfg80211.h since Kernel 4.0.
Since they're duplicate information that's already in nl80211
attributes.
Change-Id: I7c8e2f2dabd5713cb25523df5b25e59d0c4b06aa
CRs-Fixed: 1033754
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index b15735a861bb..a21a026a5331 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -20691,8 +20691,13 @@ static int __wlan_hdd_cfg80211_get_station(struct wiphy *wiphy, } if (rssi_stats_valid) { +#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0)) sinfo->filled |= STATION_INFO_CHAIN_SIGNAL_AVG; sinfo->filled |= STATION_INFO_SIGNAL_AVG; +#else + sinfo->filled |= BIT(NL80211_STA_INFO_CHAIN_SIGNAL_AVG); + sinfo->filled |= BIT(NL80211_STA_INFO_CHAIN_SIGNAL); +#endif } #endif |
