全志H313 平台上定制WIFI MAC 地址

SSV6256 WiFi芯片
------------------------------------------------------
diff --git a/longan/kernel/linux-4.9/drivers/net/wireless/ssv6x5x/smac/efuse.c b/longan/kernel/linux-4.9/drivers/net/wireless/ssv6x5x/smac/efuse.c
index 2b9e12f710..ab85d83201 100755
--- a/longan/kernel/linux-4.9/drivers/net/wireless/ssv6x5x/smac/efuse.c
+++ b/longan/kernel/linux-4.9/drivers/net/wireless/ssv6x5x/smac/efuse.c
@@ -22,7 +22,7 @@
 #include 
 #include "efuse.h"
 #include 
-
+#define CUSTOMER_HW_ALLWINNER
 mm_segment_t oldfs;
 struct file *openFile(char *path,int flag,int mode)
 {
@@ -257,11 +257,20 @@ extern char* ssv_initmac;
 #ifdef ROCKCHIP_3126_SUPPORT
 extern int rockchip_wifi_mac_addr(unsigned char *buf);
 #endif
+
+#ifdef CUSTOMER_HW_ALLWINNER
+//extern void sunxi_wlan_custom_mac_address(u8 *mac);
+extern int get_wifi_custom_mac_address(char *addr_str);
+

你可能感兴趣的:(macos)