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:17:57 +0000 (16:17 +0800)
net/rfkill/rfkill-wlan.c

index 6e47dd8c860072b492492a131abca1f7e1f9c51f..3ee4ba3faec132aeeb9e37edf1148b8811009563 100755 (executable)
@@ -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)
 {