|
@@ -1156,34 +1156,6 @@ sme_register_bcn_report_pe_cb(mac_handle_t mac_handle, beacon_report_cb cb)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-QDF_STATUS sme_get_valid_channels(uint32_t *ch_freq_list, uint32_t *list_len)
|
|
|
-{
|
|
|
- struct mac_context *mac_ctx = sme_get_mac_context();
|
|
|
- uint32_t num_valid_chan;
|
|
|
- uint8_t i;
|
|
|
-
|
|
|
- if (!mac_ctx) {
|
|
|
- sme_err("Invalid MAC context");
|
|
|
- *list_len = 0;
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
- }
|
|
|
-
|
|
|
- num_valid_chan = mac_ctx->mlme_cfg->reg.valid_channel_list_num;
|
|
|
-
|
|
|
- if (num_valid_chan > *list_len) {
|
|
|
- sme_err("list len size %d less than expected %d", *list_len,
|
|
|
- num_valid_chan);
|
|
|
- num_valid_chan = *list_len;
|
|
|
- }
|
|
|
- *list_len = num_valid_chan;
|
|
|
- for (i = 0; i < *list_len; i++) {
|
|
|
- ch_freq_list[i] =
|
|
|
- mac_ctx->mlme_cfg->reg.valid_channel_freq_list[i];
|
|
|
- }
|
|
|
-
|
|
|
- return QDF_STATUS_SUCCESS;
|
|
|
-}
|
|
|
-
|
|
|
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
|
|
static QDF_STATUS sme_register_spectral_cb(struct mac_context *mac_ctx)
|
|
|
{
|
|
@@ -6100,23 +6072,6 @@ QDF_STATUS sme_ext_change_freq(mac_handle_t mac_handle, qdf_freq_t ch_freq,
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
-/*
|
|
|
- * sme_get_roam_intra_band() -
|
|
|
- * get Intra band roaming
|
|
|
- *
|
|
|
- * mac_handle: Opaque handle to the global MAC context
|
|
|
- * Return Success or failure
|
|
|
- */
|
|
|
-bool sme_get_roam_intra_band(mac_handle_t mac_handle)
|
|
|
-{
|
|
|
- struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
|
|
-
|
|
|
- MTRACE(qdf_trace(QDF_MODULE_ID_SME,
|
|
|
- TRACE_CODE_SME_RX_HDD_GET_ROAMIBAND, NO_SESSION, 0));
|
|
|
-
|
|
|
- return mac->mlme_cfg->lfr.roam_intra_band;
|
|
|
-}
|
|
|
-
|
|
|
QDF_STATUS sme_get_roam_scan_n_probes(mac_handle_t mac_handle, uint8_t vdev_id,
|
|
|
uint8_t *roam_scan_n_probes)
|
|
|
{
|