wifi: support random mac address and save to file, solve compile warning
authorhwg <hwg@rock-chips.com>
Mon, 20 Apr 2015 08:17:57 +0000 (16:17 +0800)
committerhwg <hwg@rock-chips.com>
Mon, 20 Apr 2015 08:23:36 +0000 (16:23 +0800)
net/rfkill/rfkill-wlan.c

index d96d702d9e97efa10a75528a985b685fe51e11c3..b0eea0fe165094cb41e755bebad7d8cf424152e7 100755 (executable)
@@ -552,6 +552,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)
 {
@@ -586,6 +587,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)
 {