projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
030a0a5
)
wifi: support random mac address and save to file, solve compile warning
author
hwg
<hwg@rock-chips.com>
Mon, 20 Apr 2015 08:17:57 +0000
(16:17 +0800)
committer
hwg
<hwg@rock-chips.com>
Mon, 20 Apr 2015 08:17:57 +0000
(16:17 +0800)
net/rfkill/rfkill-wlan.c
patch
|
blob
|
history
diff --git
a/net/rfkill/rfkill-wlan.c
b/net/rfkill/rfkill-wlan.c
index 6e47dd8c860072b492492a131abca1f7e1f9c51f..3ee4ba3faec132aeeb9e37edf1148b8811009563 100755
(executable)
--- a/
net/rfkill/rfkill-wlan.c
+++ b/
net/rfkill/rfkill-wlan.c
@@
-553,6
+553,7
@@
u8 wifi_custom_mac_addr[6] = {0,0,0,0,0,0};
extern char GetSNSectorInfo(char * pbuf);
//#define ENABLE_WIFI_RAND_MAC
+#ifdef ENABLE_WIFI_RAND_MAC
#define WIFI_RAND_MAC_FILE "/data/misc/wifi_rand_mac"
static int rockchip_wifi_rand_mac_addr(unsigned char *buf)
{
@@
-587,6
+588,7
@@
static int rockchip_wifi_rand_mac_addr(unsigned char *buf)
LOG("random wifi_custom_mac_addr=[%s]\n", mac_buf);
return 0;
}
+#endif
int rockchip_wifi_mac_addr(unsigned char *buf)
{