Jelajahi Sumber

qcacld-3.0: Avoid eMib_dot11DesiredBssType in cfg80211

Currently in wlan_hdd_cfg80211.c wlan_hdd_try_disconnect() calls
hdd_conn_get_connected_bss_type() which returns a value of
eMib_dot11DesiredBssType.  This type is being deprecated so directly
use the adapter's device_mode.

Change-Id: Ib8981750475bd27818a0c7e4e386396869d90e69
CRs-Fixed: 1073739
Jeff Johnson 8 tahun lalu
induk
melakukan
9edf957229
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  1. 1 4
      core/hdd/src/wlan_hdd_cfg80211.c

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

@@ -12079,14 +12079,11 @@ static int wlan_hdd_try_disconnect(hdd_adapter_t *pAdapter)
 {
 	unsigned long rc;
 	hdd_station_ctx_t *pHddStaCtx;
-	eMib_dot11DesiredBssType connectedBssType;
 	int status, result = 0;
 
 	pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter);
 
-	hdd_conn_get_connected_bss_type(pHddStaCtx, &connectedBssType);
-
-	if ((eMib_dot11DesiredBssType_independent == connectedBssType) ||
+	if ((QDF_IBSS_MODE == pAdapter->device_mode) ||
 	  (eConnectionState_Associated == pHddStaCtx->conn_info.connState) ||
 	  (eConnectionState_Connecting == pHddStaCtx->conn_info.connState) ||
 	  (eConnectionState_IbssConnected == pHddStaCtx->conn_info.connState)) {