Browse Source

qcacld-3.0: STA falis to notify Disassoc Imminent to UI

In case of connection with Hotspot 2.0 AP, Disassocition
Imminent frame needs to be forwarded to userspace, so that
user can take necessary action, like issue pop-up
notification etc.

Currently, in case of connection with Hotspot 2.0 AP,
FW/HOST does not forward disassocition imminent frame
to userspace. This causes user-space to fail to issue
necessary notification(s).

Disable BTM offload in firmware if connect req has
HS2.0 IE, so that FW/HOST forward Disassocition Imminent
frame to to userspace.

Change-Id: Ica57fb7399ef21069d599a1046a7da6fbd42bb43
CRs-Fixed: 2733036
Abhinav Kumar 4 years ago
parent
commit
3f17236dee
3 changed files with 5 additions and 1 deletions
  1. 1 0
      core/hdd/src/wlan_hdd_cfg80211.c
  2. 1 0
      core/sme/inc/csr_api.h
  3. 3 1
      core/sme/src/csr/csr_api_roam.c

+ 1 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -19914,6 +19914,7 @@ static int wlan_hdd_cfg80211_set_ie(struct hdd_adapter *adapter,
 					assoc_add_ie->addIEdata;
 				roam_profile->nAddIEAssocLength =
 					assoc_add_ie->length;
+				roam_profile->is_hs_20_ap = true;
 			}
 			/* Appending OSEN Information  Element in Assiciation Request */
 			else if ((0 == memcmp(&genie[0], OSEN_OUI_TYPE,

+ 1 - 0
core/sme/inc/csr_api.h

@@ -722,6 +722,7 @@ struct csr_roam_profile {
 	struct wlan_fils_connection_info *fils_con_info;
 #endif
 	bool force_rsne_override;
+	bool is_hs_20_ap;
 };
 
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH

+ 3 - 1
core/sme/src/csr/csr_api_roam.c

@@ -16794,7 +16794,9 @@ static void csr_update_btm_offload_config(struct mac_context *mac_ctx,
 		return;
 
 	/* For RSO Stop Disable BTM offload to firmware */
-	if (command == ROAM_SCAN_OFFLOAD_STOP) {
+	if (command == ROAM_SCAN_OFFLOAD_STOP ||
+	    session->pCurRoamProfile->is_hs_20_ap) {
+		sme_debug("RSO cmd: %d", command);
 		*btm_offload_config = 0;
 		return;
 	}