|
@@ -15721,3 +15721,29 @@ QDF_STATUS sme_set_disconnect_ies(mac_handle_t mac_handle, uint8_t vdev_id,
|
|
|
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_SME_ID);
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
+
|
|
|
+void sme_freq_to_chan_list(
|
|
|
+ struct wlan_objmgr_pdev *pdev,
|
|
|
+ uint8_t *chan_list,
|
|
|
+ uint32_t *freq_list,
|
|
|
+ uint32_t chan_list_len)
|
|
|
+{
|
|
|
+ uint32_t count;
|
|
|
+
|
|
|
+ for (count = 0; count < chan_list_len; count++)
|
|
|
+ chan_list[count] =
|
|
|
+ (uint8_t)wlan_reg_freq_to_chan(pdev, freq_list[count]);
|
|
|
+}
|
|
|
+
|
|
|
+void sme_chan_to_freq_list(
|
|
|
+ struct wlan_objmgr_pdev *pdev,
|
|
|
+ uint32_t *freq_list,
|
|
|
+ const uint8_t *chan_list,
|
|
|
+ uint32_t chan_list_len)
|
|
|
+{
|
|
|
+ uint32_t count;
|
|
|
+
|
|
|
+ for (count = 0; count < chan_list_len; count++)
|
|
|
+ freq_list[count] =
|
|
|
+ wlan_reg_chan_to_freq(pdev, (uint32_t)chan_list[count]);
|
|
|
+}
|