From b22da3d8526a935aa31e086e63f60ff3246cb61c Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 09 Dec 2023 07:24:11 +0000
Subject: [PATCH] add stmac read mac form eeprom

---
 kernel/drivers/net/wireless/marvell/libertas/mesh.h |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/drivers/net/wireless/marvell/libertas/mesh.h b/kernel/drivers/net/wireless/marvell/libertas/mesh.h
index dfe22c9..d49717b 100644
--- a/kernel/drivers/net/wireless/marvell/libertas/mesh.h
+++ b/kernel/drivers/net/wireless/marvell/libertas/mesh.h
@@ -16,7 +16,7 @@
 
 struct net_device;
 
-int lbs_init_mesh(struct lbs_private *priv);
+void lbs_init_mesh(struct lbs_private *priv);
 void lbs_start_mesh(struct lbs_private *priv);
 int lbs_deinit_mesh(struct lbs_private *priv);
 
@@ -24,8 +24,7 @@
 
 static inline bool lbs_mesh_activated(struct lbs_private *priv)
 {
-	/* Mesh SSID is only programmed after successful init */
-	return priv->mesh_ssid_len != 0;
+	return !!priv->mesh_tlv;
 }
 
 int lbs_mesh_set_channel(struct lbs_private *priv, u8 channel);

--
Gitblit v1.6.2