Browse Source

fw-api: CL 9835039 - update fw common interface files

add WMI_ROAM_INVOKE_FLAG_FULL_SCAN_IF_NO_CANDIDATE def

Change-Id: Ie7483c9883aa65a6290304fe8383cf2fab877ff6
CRs-Fixed: 2262693
spuligil 5 years ago
parent
commit
2d9ba8c114
2 changed files with 15 additions and 5 deletions
  1. 14 4
      fw/wmi_unified.h
  2. 1 1
      fw/wmi_version.h

+ 14 - 4
fw/wmi_unified.h

@@ -13786,12 +13786,14 @@ typedef struct{
 
 /* flags for roam_invoke_cmd */
 /* add this channel into roam cache channel list after this command is finished */
-#define WMI_ROAM_INVOKE_FLAG_ADD_CH_TO_CACHE       0
+#define WMI_ROAM_INVOKE_FLAG_ADD_CH_TO_CACHE           0
 /* indicate to host of failure if WMI_ROAM_INVOKE_CMDID. */
-#define WMI_ROAM_INVOKE_FLAG_REPORT_FAILURE        1
+#define WMI_ROAM_INVOKE_FLAG_REPORT_FAILURE            1
 /* during host-invoked roaming, don't send null data frame to AP */
-#define WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP   2
-/* from bit 3 to bit 31 are reserved */
+#define WMI_ROAM_INVOKE_FLAG_NO_NULL_FRAME_TO_AP       2
+/* start extra full scan if no candidate found in previous scan */
+#define WMI_ROAM_INVOKE_FLAG_FULL_SCAN_IF_NO_CANDIDATE 3
+/* from bit 4 to bit 31 are reserved */
 
 #define WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE(flag) do { \
         (flag) |=  (1 << WMI_SET_ROAM_INVOKE_ADD_CH_TO_CACHE);      \
@@ -13814,6 +13816,13 @@ typedef struct{
 #define WMI_ROAM_INVOKE_AP_SEL_FIXED_BSSID      0   /* roam to given BSSID only */
 #define WMI_ROAM_INVOKE_AP_SEL_ANY_BSSID        1   /* roam to any BSSID */
 
+enum wlan_roam_invoke_reason {
+    ROAM_INVOKE_REASON_UNDEFINED = 0,
+    /* FW will use default parameters to do roam scan, ignore other parameters like WLM, etc. */
+    ROAM_INVOKE_REASON_NUD_FAILURE, /* Neighbor Unreachable Detection */
+    ROAM_INVOKE_REASON_USER_SPACE,
+};
+
 /** WMI_ROAM_INVOKE_CMD: command to invoke roaming forcefully
 *
 if <roam_scan_ch_mode> is zero and <channel_no> is not given, roaming is not executed.
@@ -13837,6 +13846,7 @@ typedef struct {
     A_UINT32 num_chan; /** # if channels to scan. In the TLV channel_list[] */
     A_UINT32 num_bssid;  /** number of bssids. In the TLV bssid_list[] */
     A_UINT32 num_buf; /** number of buffers In the TLV bcn_prb_buf_list[] */
+    A_UINT32 reason; /** reason of invoke roam, see enum wlan_roam_invoke_reason */
     /**
      * TLV (tag length value) parameters follows roam_invoke_req
      * The TLV's are:

+ 1 - 1
fw/wmi_version.h

@@ -36,7 +36,7 @@
 #define __WMI_VER_MINOR_    0
 /** WMI revision number has to be incremented when there is a
  *  change that may or may not break compatibility. */
-#define __WMI_REVISION_ 790
+#define __WMI_REVISION_ 791
 
 /** The Version Namespace should not be normally changed. Only
  *  host and firmware of the same WMI namespace will work