[PATCH 3/7] Use warn() if mac address file is not found

Kalle Valo kvalo at qca.qualcomm.com
Mon May 20 06:54:00 EDT 2013


It's not that serious if mac address is not found so use
just warn() which doesn't look so serious in the logs.

Signed-off-by: Kalle Valo <kvalo at qca.qualcomm.com>
---
 main.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 461eb9e..edcb28c 100644
--- a/main.c
+++ b/main.c
@@ -476,8 +476,8 @@ static int wcn36xx_read_mac_addresses(struct wcn36xx *wcn)
 		status = request_firmware(&addr_file, files[i], wcn->dev);
 
 		if (status) {
-			wcn36xx_error("Failed to read macaddress file %s",
-				      files[i]);
+			wcn36xx_warn("Failed to read macaddress file %s, using a random address instead",
+				     files[i]);
 			/* Assign a random mac address with Qualcomm oui */
 			memcpy(wcn->addresses[i].addr, qcom_oui, 3);
 			get_random_bytes(wcn->addresses[i].addr + 3, 3);




More information about the wcn36xx mailing list