mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
qcacld-3.0: Update CC in beacon of SAP
Currently when CC change but restart SAP is not needed, no beacon or probe response template is updated to FW and the CC IE in beacon is not updated. Need to update accordingly. Change-Id: I588fdf6f9dd69c9c01058ba17a4282d732ed74be CRs-Fixed: 2818650
This commit is contained in:
parent
0fffb0a232
commit
cbfd662af4
3 changed files with 22 additions and 0 deletions
|
|
@ -1475,4 +1475,13 @@ enum reg_phymode csr_convert_to_reg_phy_mode(eCsrPhyMode csr_phy_mode,
|
|||
*/
|
||||
eCsrPhyMode csr_convert_from_reg_phy_mode(enum reg_phymode phymode);
|
||||
|
||||
/*
|
||||
* csr_update_beacon() - CSR API to update beacon template
|
||||
* @mac: mac context
|
||||
*
|
||||
* This API is used to update beacon template to FW
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void csr_update_beacon(struct mac_context *mac);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -5366,6 +5366,7 @@ sme_handle_generic_change_country_code(struct mac_context *mac_ctx,
|
|||
|
||||
/* reset info based on new cc, and we are done */
|
||||
csr_apply_channel_power_info_wrapper(mac_ctx);
|
||||
csr_update_beacon(mac_ctx);
|
||||
|
||||
csr_scan_filter_results(mac_ctx);
|
||||
|
||||
|
|
|
|||
|
|
@ -2766,3 +2766,15 @@ QDF_STATUS csr_scan_filter_results(struct mac_context *mac_ctx)
|
|||
wlan_objmgr_pdev_release_ref(pdev, WLAN_LEGACY_MAC_ID);
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
void csr_update_beacon(struct mac_context *mac)
|
||||
{
|
||||
struct scheduler_msg msg = { 0 };
|
||||
QDF_STATUS status;
|
||||
|
||||
msg.type = SIR_LIM_UPDATE_BEACON;
|
||||
status = scheduler_post_message(QDF_MODULE_ID_SME, QDF_MODULE_ID_PE,
|
||||
QDF_MODULE_ID_PE, &msg);
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
sme_err("scheduler_post_message failed, status = %u", status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue