system/qcom: Add new SoftAP APIs to send new commands to driver
- Add SoftAP API to send initAP cmd to Driver - Add SoftAP API to send exitAP cmd to Driver - Add SoftAP API to update macaddr_acl value CRs-fixed: 331343, 333643 Change-Id: I662b819a4055a652649748461e58b1ab50e0b01e Acked-by: Ramasundar Kara Venkata <nkaraven@qca.qualcomm.com>
This commit is contained in:
committed by
Linux Build Service Account
parent
baad0d7814
commit
caf8792027
@@ -2291,20 +2291,25 @@ static void qsap_handle_set_request(s8 *pcmd, s8 *presp, u32 *plen)
|
||||
value = atoi(pVal);
|
||||
if(FALSE == IS_VALID_MAC_ACL(value))
|
||||
goto error;
|
||||
|
||||
|
||||
/** Write back the integer value. This is to avoid values like 01, 001, 0001
|
||||
* being written to the configuration
|
||||
*/
|
||||
snprintf(pVal, sizeof(u32), "%ld", value);
|
||||
|
||||
|
||||
if(ACL_ALLOW_LIST == value) {
|
||||
value = ENABLE;
|
||||
status = DISABLE;
|
||||
}
|
||||
else {
|
||||
else if(ACL_DENY_LIST == value){
|
||||
value = DISABLE;
|
||||
status = ENABLE;
|
||||
}
|
||||
else {
|
||||
// must be ACL_ALLOW_AND_DENY_LIST
|
||||
value = ENABLE;
|
||||
status = ENABLE;
|
||||
}
|
||||
|
||||
if(eERR_UNKNOWN != qsap_change_cfg(pconffile, &qsap_str[STR_ACCEPT_MAC_FILE], value)) {
|
||||
if(eERR_UNKNOWN != qsap_change_cfg(pconffile, &qsap_str[STR_DENY_MAC_FILE], status))
|
||||
@@ -2508,6 +2513,14 @@ static void qsap_handle_set_request(s8 *pcmd, s8 *presp, u32 *plen)
|
||||
if(status == eSUCCESS)
|
||||
status = wifi_qsap_unload_driver();
|
||||
}
|
||||
#ifdef QCOM_WLAN_CONCURRENCY
|
||||
else if(SAP_INITAP == value) {
|
||||
status = wifi_qsap_start_softap_in_concurrency();
|
||||
}
|
||||
else if(SAP_EXITAP == value) {
|
||||
status = wifi_qsap_stop_softap_in_concurrency();
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
status = !eSUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user