#define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
#define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
#define MAC_INFO_FILEPATH tzplatform_mkpath(TZ_SYS_ETC, "/.mac.info")
+#define MAC_ADDRESS_FILEPATH "/sys/class/net/wlan0/address"
#define MAC_ADDRESS_MAX_LEN 18
static gboolean netconfig_device_picker_test = FALSE;
file = fopen(MAC_INFO_FILEPATH, "r");
if (file == NULL) {
ERR("Fail to open %s", MAC_INFO_FILEPATH);
- return;
+ file = fopen(MAC_ADDRESS_FILEPATH, "r");
+ if (file == NULL) {
+ ERR("Fail to open %s", MAC_ADDRESS_FILEPATH);
+ return;
+ }
}
if (fgets(mac_str, sizeof(mac_str), file) == NULL) {
ERR("Fail to read mac address");