#endif
#define WLAN_MAC_INFO tzplatform_mkpath(TZ_SYS_ETC, "/.mac.info")
+#define WLAN_MAC_ADDRESS_FILEPATH "/sys/class/net/wlan0/address"
#define WLAN_MAC_ADDR_MAX 20
#define VCONF_WIFI_BSSID_ADDRESS "db/wifi/bssid_address"
FILE *fp = fopen(WLAN_MAC_INFO, "r");
if (fp == NULL) {
- ERR("Fail to open file");
- return;
+ ERR("Fail to open %s", WLAN_MAC_INFO);
+ fp = fopen(WLAN_MAC_ADDRESS_FILEPATH, "r");
+ if (fp == NULL) {
+ ERR("Fail to open %s", WLAN_MAC_ADDRESS_FILEPATH);
+ return;
+ }
}
fseek(fp, 0L, SEEK_SET);