Selaa lähdekoodia

qcacmn: convert host to fw phymode enum

During ML peer assoc info send, convert host to fw
phymode enum.

Change-Id: I3744b09f629d3c6b55394d56cd58042f86eec332
CRs-Fixed: 3557285
Deeksha Gupta 2 vuotta sitten
vanhempi
sitoutus
c22f6c569a
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 4 0
      wmi/src/wmi_unified_11be_tlv.c

+ 4 - 0
wmi/src/wmi_unified_11be_tlv.c

@@ -315,9 +315,13 @@ uint8_t *peer_assoc_add_mlo_params(uint8_t *buf_ptr,
 static inline void wmi_copy_chan_info(wmi_channel *dst_chan,
 				      struct wlan_channel *src_chan)
 {
+	WMI_HOST_WLAN_PHY_MODE fw_phy_mode;
+
 	dst_chan->mhz = src_chan->ch_freq;
 	dst_chan->band_center_freq1 = src_chan->ch_cfreq1;
 	dst_chan->band_center_freq2 = src_chan->ch_cfreq2;
+	fw_phy_mode = wmi_host_to_fw_phymode(src_chan->ch_phymode);
+	WMI_SET_CHANNEL_MODE(dst_chan, fw_phy_mode);
 }
 
 static inline void