浏览代码

qcacld-3.0: Add IOCTL and INI template for PMF/11w feature

Add IOCTL and INI template for PMF/11w feature for documentation.

Change-Id: I91383117ec7dd5f80e71fa6c84293e97b9511596
CRs-Fixed: 1097317
Abhishek Singh 8 年之前
父节点
当前提交
2f8104969f
共有 2 个文件被更改,包括 58 次插入0 次删除
  1. 35 0
      core/hdd/inc/wlan_hdd_cfg.h
  2. 23 0
      core/hdd/src/wlan_hdd_wext.c

+ 35 - 0
core/hdd/inc/wlan_hdd_cfg.h

@@ -3554,11 +3554,46 @@ typedef enum {
 #endif /* MSM_PLATFORM */
 
 #ifdef WLAN_FEATURE_11W
+/*
+ * <ini>
+ * pmfSaQueryMaxRetries - Control PMF SA query retries for SAP
+ * @Min: 0
+ * @Max: 20
+ * @Default: 5
+ *
+ * This ini to set the number of PMF SA query retries for SAP
+ *
+ * Related: None.
+ *
+ * Supported Feature: PMF(11W)
+ *
+ * Usage: Internal/External
+ *
+ * </ini>
+ */
 #define CFG_PMF_SA_QUERY_MAX_RETRIES_NAME          "pmfSaQueryMaxRetries"
 #define CFG_PMF_SA_QUERY_MAX_RETRIES_DEFAULT       (5)
 #define CFG_PMF_SA_QUERY_MAX_RETRIES_MIN           (0)
 #define CFG_PMF_SA_QUERY_MAX_RETRIES_MAX           (20)
 
+/*
+ * <ini>
+ * pmfSaQueryRetryInterval - Control PMF SA query retry interval
+ * for SAP in ms
+ * @Min: 0
+ * @Max: 2000
+ * @Default: 200
+ *
+ * This ini to set the PMF SA query retry interval for SAP in ms
+ *
+ * Related: None.
+ *
+ * Supported Feature: PMF(11W)
+ *
+ * Usage: Internal/External
+ *
+ * </ini>
+ */
 #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_NAME       "pmfSaQueryRetryInterval"
 #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_DEFAULT    (200)
 #define CFG_PMF_SA_QUERY_RETRY_INTERVAL_MIN        (0)

+ 23 - 0
core/hdd/src/wlan_hdd_wext.c

@@ -436,6 +436,29 @@ static const hdd_freq_chan_map_t freq_chan_map[] = {
 #define WE_GET_TDLS_PEERS    8
 #endif
 #ifdef WLAN_FEATURE_11W
+/*
+ * <ioctl>
+ * getPMFInfo - get the PMF info of the connected session
+ *
+ * @INPUT: None
+ *
+ * @OUTPUT:
+ *  wlan0     getPMFInfo:
+ *  BSSID E4:F4:C6:0A:E0:36, Is PMF Assoc? 0
+ *  Number of Unprotected Disassocs 0
+ *  Number of Unprotected Deauths 0
+ *
+ * This IOCTL is used to get the PMF stats/status of the current
+ * connection.
+ *
+ * @e.g:iwpriv wlan0 getPMFInfo
+ *
+ * Supported Feature: PMF
+ *
+ * Usage: Internal/External
+ *
+ * </ioctl>
+ */
 #define WE_GET_11W_INFO      9
 #endif
 #define WE_GET_STATES        10