Forráskód Böngészése

qcacmn: reinitialize frequency even with 0 for cypress

mu code is not sending frequency in top 16 bits of tlv.
this check makes sure not to check for freq 0 and still be able to use
channel to generate freq.

Change-Id: If18c400e51bc41f8fec4fd50bdd180adfd79e578
Ruben Columbus 4 éve
szülő
commit
33c340b945
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      hal/wifi3.0/hal_generic_api.h

+ 1 - 2
hal/wifi3.0/hal_generic_api.h

@@ -573,8 +573,7 @@ hal_rx_status_get_tlv_info_generic(void *rx_tlv_hdr, void *ppduinfo,
 		ppdu_info->rx_status.chan_freq =
 			(HAL_RX_GET(rx_tlv, RX_PPDU_START_1,
 				SW_PHY_META_DATA) & 0xFFFF0000)>>16;
-		if (ppdu_info->rx_status.chan_num &&
-		    ppdu_info->rx_status.chan_freq) {
+		if (ppdu_info->rx_status.chan_num) {
 			ppdu_info->rx_status.chan_freq =
 				hal_rx_radiotap_num_to_freq(
 				ppdu_info->rx_status.chan_num,