Pārlūkot izejas kodu

qcacld-3.0: Don't check for NULL session in tdls_update_node_he_caps

Don't check for NULL for session in tdls_update_node_he_caps()
as the caller lim_process_sme_tdls_add_sta_req() is already
checking that.

Change-Id: I15b8144db385265fb77612f17123fd9f949ab7bf
CRs-Fixed: 3007560
Utkarsh Bhatnagar 3 gadi atpakaļ
vecāks
revīzija
d485b0b5d4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/mac/src/pe/lim/lim_process_tdls.c

+ 1 - 1
core/mac/src/pe/lim/lim_process_tdls.c

@@ -1102,7 +1102,7 @@ static void lim_tdls_update_node_he_caps(struct mac_context *mac,
 	if (sta->he_config.present)
 		sta->mlmStaContext.he_capable = 1;
 
-	if (pe_session && sta->he_config.present)
+	if (sta->he_config.present)
 		lim_tdls_set_he_chan_width(&sta->he_config, pe_session);
 
 	lim_log_he_cap(mac, &sta->he_config);