Browse Source

qcacmn: Add function to read MDIE

Add function to return a pointer pointing to Mobility Domain IE
of a scan entry.

Change-Id: I61254bfc3de117a2d7cfb187665ac228c9ea383e
CRs-Fixed: 2311319
Jeevan Kukkalli 6 years ago
parent
commit
1ef2b73707
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

@@ -1548,4 +1548,18 @@ util_scan_entry_extenderie(struct scan_cache_entry *scan_entry)
 	return scan_entry->ie_list.extender;
 }
 
+/**
+ * util_scan_entry_mdie() - function to read Mobility Domain IE
+ * @scan_entry: scan entry
+ *
+ * API, function to read Mobility Domain IE
+ *
+ * Return: MDIE or NULL if IE is not present
+ */
+static inline uint8_t*
+util_scan_entry_mdie(struct scan_cache_entry *scan_entry)
+{
+	return scan_entry->ie_list.mdie;
+}
+
 #endif