[PATCH 4/7] smd: print what hal response had an error
Kalle Valo
kvalo at qca.qualcomm.com
Thu May 16 08:42:22 EDT 2013
Also introduce wcn36xx_warn() and use that to print
the warning.
Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>
---
smd.c | 3 ++-
wcn36xx.h | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/smd.c b/smd.c
index 7a37025..dca3ae5 100644
--- a/smd.c
+++ b/smd.c
@@ -532,7 +532,8 @@ static void wcn36xx_smd_rsp_process (void *buf, size_t len)
case WCN36XX_HAL_SEND_BEACON_RSP:
case WCN36XX_HAL_SET_LINK_ST_RSP:
if(wcn36xx_smd_rsp_status_check(buf, len)) {
- wcn36xx_error("response failed");
+ wcn36xx_warn("error response from hal request %d",
+ msg_header->msg_type);
}
break;
case WCN36XX_HAL_JOIN_RSP:
diff --git a/wcn36xx.h b/wcn36xx.h
index 74145b7..ce7272b 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -51,6 +51,9 @@ enum wcn36xx_debug_mask {
pr_err(DRIVER_PREFIX "ERROR " fmt "\n", ##arg); \
__WARN()
+#define wcn36xx_warn(fmt, arg...) \
+ pr_warning(DRIVER_PREFIX "WARNING " fmt "\n", ##arg);
+
#define wcn36xx_info(fmt, arg...) \
pr_info(DRIVER_PREFIX fmt "\n", ##arg)
More information about the wcn36xx
mailing list