-DWIFI_ACT_FRAME -DARP_OFFLOAD_SUPPORT -DSUPPORT_PM2_ONLY \
-DKEEP_ALIVE -DPKT_FILTER_SUPPORT -DPNO_SUPPORT -DDHDTCPACK_SUPPRESS \
-DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DRXFRAME_THREAD \
- -DENABLE_INSMOD_NO_FW_LOAD \
+ -DENABLE_INSMOD_NO_FW_LOAD -DGET_CUSTOM_MAC_ENABLE \
-I$(src) -I$(src)/include
DHDOFILES = aiutils.o siutils.o sbutils.o bcmutils.o bcmwifi_channels.o \
#endif
#endif
+extern u8 *wifi_get_mac(void);
#ifndef CUSTOMER_HW_AMLOGIC
#define WL_REG_ON 0 // WL_REG_ON is the input pin of WLAN module
#define WL_HOST_WAKE 0 // WL_HOST_WAKE is output pin of WLAN module
bcopy((char *)&ea_example, buf, sizeof(struct ether_addr));
}
#endif /* EXAMPLE_GET_MAC */
-
+ bcopy((char *)wifi_get_mac(), buf, sizeof(struct ether_addr));
+ if (buf[0] == 0xff) {
+ printf("custom wifi mac is not set\n");
+ err = -1;
+ }
return err;
}
-DKEEP_ALIVE -DPKT_FILTER_SUPPORT -DPNO_SUPPORT -DDHDTCPACK_SUPPRESS \
-DDHD_DONOT_FORWARD_BCMEVENT_AS_NETWORK_PKT -DRXFRAME_THREAD \
-DSWTXGLOM \
- -DENABLE_INSMOD_NO_FW_LOAD \
+ -DENABLE_INSMOD_NO_FW_LOAD -DGET_CUSTOM_MAC_ENABLE \
-I$(src) -I$(src)/include
DHDOFILES = aiutils.o siutils.o sbutils.o bcmutils.o bcmwifi_channels.o \
#endif
#endif
+extern u8 *wifi_get_mac(void);
struct wifi_platform_data dhd_wlan_control = {0};
#ifdef CUSTOMER_OOB
bcopy((char *)&ea_example, buf, sizeof(struct ether_addr));
}
#endif /* EXAMPLE_GET_MAC */
-
+ bcopy((char *)wifi_get_mac(), buf, sizeof(struct ether_addr));
+ if (buf[0] == 0xff) {
+ printf("custom wifi mac is not set\n");
+ err = -1;
+ }
return err;
}