|
@@ -1,5 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
@@ -198,8 +199,8 @@ iot_sim_add_peer(struct iot_sim_context *isc, struct qdf_mac_addr *mac)
|
|
|
(struct iot_sim_rule_per_peer));
|
|
|
if (!peer_rule) {
|
|
|
iot_sim_err("Memory alloc failed for peer: "
|
|
|
- QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(mac->bytes));
|
|
|
+ QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(mac->bytes));
|
|
|
goto rel_lock;
|
|
|
}
|
|
|
|
|
@@ -208,8 +209,8 @@ iot_sim_add_peer(struct iot_sim_context *isc, struct qdf_mac_addr *mac)
|
|
|
&peer_rule->node);
|
|
|
if (QDF_IS_STATUS_ERROR(status)) {
|
|
|
iot_sim_err("peer_list enqueue failed for peer "
|
|
|
- QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(mac->bytes));
|
|
|
+ QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(mac->bytes));
|
|
|
qdf_mem_free(peer_rule);
|
|
|
peer_rule = NULL;
|
|
|
}
|
|
@@ -865,8 +866,8 @@ iot_sim_delete_rule_for_mac(struct iot_sim_context *isc,
|
|
|
if (qdf_is_macaddr_zero(mac))
|
|
|
iot_sim_info("Rule deletion for all peers");
|
|
|
else
|
|
|
- iot_sim_info("Rule deletion for " QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(mac->bytes));
|
|
|
+ iot_sim_info("Rule deletion for " QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(mac->bytes));
|
|
|
|
|
|
iot_sim_debug("oper:%s seq: %hu %s:%hu/%hu",
|
|
|
iot_sim_oper_to_str(oper), seq,
|
|
@@ -1132,8 +1133,8 @@ iot_sim_add_rule_for_mac(struct iot_sim_context *isc,
|
|
|
if (qdf_is_macaddr_zero(mac))
|
|
|
iot_sim_info("Rule addition for all peers");
|
|
|
else
|
|
|
- iot_sim_info("Rule addition for " QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(mac->bytes));
|
|
|
+ iot_sim_info("Rule addition for " QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(mac->bytes));
|
|
|
|
|
|
iot_sim_info("oper:%s seq: %hu %s:%hu/%hu delay:%hu",
|
|
|
iot_sim_oper_to_str(oper), seq,
|
|
@@ -1349,8 +1350,8 @@ iot_sim_parse_user_input_delay(struct iot_sim_context *isc,
|
|
|
if (argv[5])
|
|
|
status = qdf_mac_parse(argv[5], addr);
|
|
|
|
|
|
- iot_sim_err("delay rule mac address " QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(addr->bytes));
|
|
|
+ iot_sim_err("delay rule mac address " QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(addr->bytes));
|
|
|
|
|
|
return status;
|
|
|
err:
|
|
@@ -1539,8 +1540,8 @@ iot_sim_parse_user_input_drop(struct iot_sim_context *isc,
|
|
|
if (argv[5])
|
|
|
status = qdf_mac_parse(argv[5], addr);
|
|
|
|
|
|
- iot_sim_err("drop rule mac address " QDF_FULL_MAC_FMT,
|
|
|
- QDF_FULL_MAC_REF(addr->bytes));
|
|
|
+ iot_sim_err("drop rule mac address " QDF_MAC_ADDR_FMT,
|
|
|
+ QDF_MAC_ADDR_REF(addr->bytes));
|
|
|
|
|
|
return status;
|
|
|
err:
|