Sfoglia il codice sorgente

qcacld-3.0: Use sw_target_freq to prepare tx_power_env IE

In populate_dot11f_chan_switch_wrapper() host uses channel number to
prepare tx_power_env IE. As channel number is input to
populate_dot11f_tx_power_env(), tx_power_env IE gets wrong values of
max tx power constraints.
Hence input sw_target_freq to populate_dot11f_tx_power_env().

Change-Id: If3112f9e68bdb57cbfd3073ed25f3dcf4f9750d7
CRs-Fixed: 2842552
Abhishek Ambure 4 anni fa
parent
commit
8fb82398a2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/mac/src/sys/legacy/src/utils/src/parser_api.c

+ 1 - 1
core/mac/src/sys/legacy/src/utils/src/parser_api.c

@@ -366,7 +366,7 @@ populate_dot11f_chan_switch_wrapper(struct mac_context *mac,
 		populate_dot11f_tx_power_env(mac,
 				&pDot11f->transmit_power_env,
 				pe_session->gLimChannelSwitch.ch_width,
-				pe_session->gLimChannelSwitch.primaryChannel,
+				pe_session->gLimChannelSwitch.sw_target_freq,
 				NULL, true);
 	}
 }