mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Provide SNR value as SIGNAL_INFO to userspace for SAP
Currently, userspace is expecting SNR value through NL80211_STA_INFO_SIGNAL for a disconnected client of SAP. But the driver sends RSSI value by doing noise floor to the SNR value received from firmware. Convert this back to SNR and provide to userspace as per the definition of NL80211_STA_INFO_SIGNAL and to be in sync with the existing implementation of userspace. Change-Id: Ia360424a9d44e48fae5a85cf0d2c577e92cd93be CRs-Fixed: 2552542
This commit is contained in:
parent
f7ae80a32e
commit
b6cf30725e
2 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue