wlan: Add firmware capability check of SAP offload feature

Add feature capability check for SAP offload feature
to enable the feature only if firmware supports.
This flag will be use for SAP Auth Offload, SAP DHCP
offload and SAP DNS offload.

Change-Id: Ice1260ec572560db06f41b7d2b4dfca492b6cf80
CRs-Fixed: 1097242
diff --git a/CORE/MAC/src/include/sirParams.h b/CORE/MAC/src/include/sirParams.h
index a1a48d3..9e6f1b9 100644
--- a/CORE/MAC/src/include/sirParams.h
+++ b/CORE/MAC/src/include/sirParams.h
@@ -145,6 +145,11 @@
    PER_BASED_ROAMING = 63,
 #endif
    SAP_MODE_WOW = 64,
+   /* SAP_OFFLOADS flag will be used for
+    * SAP auth offload, SAP DHCP offload and
+    * SAP DNS offload.
+    */
+   SAP_OFFLOADS = 65,
    //MAX_FEATURE_SUPPORTED = 128
 } placeHolderInCapBitmap;
 
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 535237a..18eb575 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -220,6 +220,8 @@
    ,WIFI_CONFIG                    //61
    ,ANTENNA_DIVERSITY_SELECTION    //62
    ,PER_BASED_ROAMING              //63
+   ,SAP_MODE_WOW                   //64
+   ,SAP_OFFLOADS                   //65
 };
 
 /*-------------------------------------------------------------------------- 
@@ -1641,6 +1643,16 @@
                                          "%s", "PER_BASED_ROAMING");
                           pCapStr += strlen("PER_BASED_ROAMING");
                           break;
+                     case SAP_MODE_WOW:
+                          snprintf(pCapStr, sizeof("SAP_MODE_WOW"),
+                                         "%s", "SAP_MODE_WOW");
+                          pCapStr += strlen("SAP_MODE_WOW");
+                          break;
+                     case SAP_OFFLOADS:
+                          snprintf(pCapStr, sizeof("SAP_OFFLOADS"),
+                                         "%s", "SAP_OFFLOADS");
+                          pCapStr += strlen("SAP_OFFLOADS");
+                          break;
                  }
                  *pCapStr++ = ',';
                  *pCapStr++ = ' ';