Browse Source

qcacmn: Added new API to get the NSS from the scan entry

NSS from scan entry is required to calculate the link rate.

Change-Id: If0e4bf2499239abe14dc21154f20687a8d4dd87c
Muthuchamy Kumar 5 years ago
parent
commit
394948ac33
1 changed files with 14 additions and 0 deletions
  1. 14 0
      umac/scan/dispatcher/inc/wlan_scan_utils_api.h

+ 14 - 0
umac/scan/dispatcher/inc/wlan_scan_utils_api.h

@@ -309,6 +309,20 @@ util_scan_entry_phymode(struct scan_cache_entry *scan_entry)
 	return scan_entry->phy_mode;
 }
 
+/**
+ * util_scan_entry_nss() - function to read nss of scan entry
+ * @scan_entry: scan entry
+ *
+ * API, function to read nss of scan entry
+ *
+ * Return: nss
+ */
+static inline u_int8_t
+util_scan_entry_nss(struct scan_cache_entry *scan_entry)
+{
+	return scan_entry->nss;
+}
+
 /**
  * util_is_ssid_match() - to check if ssid match
  * @ssid1: ssid 1