1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-09 23:57:00 +00:00

Use fixed mac address when one is not specified

* Use fixed MAC instead of RANDOM. For changing MAC, use "macchanger" or related tools instead.
  This fix was presented in "goncalossilva" fork here: 
  eaa89bf90c
This commit is contained in:
Christian B 2017-12-16 12:31:10 +01:00 committed by GitHub
parent 628837ca94
commit 14e3266529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1379,7 +1379,7 @@ extern char *rtw_initmac;
*/
void rtw_macaddr_cfg(u8 *out, const u8 *hw_mac_addr)
{
#define DEFAULT_RANDOM_MACADDR 1
#define DEFAULT_RANDOM_MACADDR 0
u8 mac[ETH_ALEN];
if (out == NULL) {
@ -1422,9 +1422,9 @@ err_chk:
mac[0] = 0x00;
mac[1] = 0xe0;
mac[2] = 0x4c;
mac[3] = 0x87;
mac[4] = 0x00;
mac[5] = 0x00;
mac[3] = 0xe0;
mac[4] = 0x10;
mac[5] = 0x70;
#endif
}