mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 13:09:04 -04:00
qcacld-3.0: Use correct SAP context in hdd_print_acl()
In hdd_print_acl() the calls to SAP APIs are using a poorly named, poorly typed variable. Recently all of the SAP APIs were reworked to expose a clean interface, so update hdd_print_acl() to align with that interface. Change-Id: Ib10f5fc017589d13fe1ccfb758d9333daa0e3ac7 CRs-Fixed: 2118653
This commit is contained in:
parent
47397ec8fe
commit
156b9d27ce
1 changed files with 12 additions and 12 deletions
|
|
@ -3005,16 +3005,16 @@ static void print_mac_list(struct qdf_mac_addr *macList, uint8_t size)
|
|||
}
|
||||
}
|
||||
|
||||
static QDF_STATUS hdd_print_acl(struct hdd_adapter *pHostapdAdapter)
|
||||
static QDF_STATUS hdd_print_acl(struct hdd_adapter *adapter)
|
||||
{
|
||||
eSapMacAddrACL acl_mode;
|
||||
struct qdf_mac_addr MacList[MAX_ACL_MAC_ADDRESS];
|
||||
struct qdf_mac_addr maclist[MAX_ACL_MAC_ADDRESS];
|
||||
uint8_t listnum;
|
||||
void *p_cds_gctx = NULL;
|
||||
struct sap_context *sap_ctx;
|
||||
|
||||
p_cds_gctx = WLAN_HDD_GET_SAP_CTX_PTR(pHostapdAdapter);
|
||||
qdf_mem_zero(&MacList[0], sizeof(MacList));
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_mode(p_cds_gctx, &acl_mode)) {
|
||||
sap_ctx = WLAN_HDD_GET_SAP_CTX_PTR(adapter);
|
||||
qdf_mem_zero(&maclist[0], sizeof(maclist));
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_mode(sap_ctx, &acl_mode)) {
|
||||
pr_info("******** ACL MODE *********\n");
|
||||
switch (acl_mode) {
|
||||
case eSAP_ACCEPT_UNLESS_DENIED:
|
||||
|
|
@ -3037,22 +3037,22 @@ static QDF_STATUS hdd_print_acl(struct hdd_adapter *pHostapdAdapter)
|
|||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_accept_list(p_cds_gctx,
|
||||
&MacList[0],
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_accept_list(sap_ctx,
|
||||
&maclist[0],
|
||||
&listnum)) {
|
||||
pr_info("******* WHITE LIST ***********\n");
|
||||
if (listnum <= MAX_ACL_MAC_ADDRESS)
|
||||
print_mac_list(&MacList[0], listnum);
|
||||
print_mac_list(&maclist[0], listnum);
|
||||
} else {
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_deny_list(p_cds_gctx,
|
||||
&MacList[0],
|
||||
if (QDF_STATUS_SUCCESS == wlansap_get_acl_deny_list(sap_ctx,
|
||||
&maclist[0],
|
||||
&listnum)) {
|
||||
pr_info("******* BLACK LIST ***********\n");
|
||||
if (listnum <= MAX_ACL_MAC_ADDRESS)
|
||||
print_mac_list(&MacList[0], listnum);
|
||||
print_mac_list(&maclist[0], listnum);
|
||||
} else {
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue