diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 4d3680c5cf36..5fe5c3f94a76 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -403,6 +403,8 @@ enum hdd_driver_flags { #define NUM_TX_RX_HISTOGRAM_MASK (NUM_TX_RX_HISTOGRAM - 1) +#define HDD_NOISE_FLOOR_DBM (-96) + /** * enum hdd_auth_key_mgmt - auth key mgmt protocols * @HDD_AUTH_KEY_MGMT_802_1X: 802.1x diff --git a/core/hdd/src/wlan_hdd_station_info.c b/core/hdd/src/wlan_hdd_station_info.c index f485fa8bce74..076f2c571c95 100644 --- a/core/hdd/src/wlan_hdd_station_info.c +++ b/core/hdd/src/wlan_hdd_station_info.c @@ -821,7 +821,8 @@ static int32_t hdd_add_sta_info_sap(struct sk_buff *skb, int8_t rssi, if (!nla_attr) goto fail; - if (nla_put_u8(skb, NL80211_STA_INFO_SIGNAL, rssi)) { + if (nla_put_u8(skb, NL80211_STA_INFO_SIGNAL, + rssi - HDD_NOISE_FLOOR_DBM)) { hdd_err("put fail"); goto fail; }