morrownr / 88x2bu

Linux Driver for USB WiFi Adapters that are based on the RTL8812BU and RTL8822BU Chipsets
435 stars 73 forks source link

Change device MAC in probe request #42

Closed gteca closed 3 years ago

gteca commented 3 years ago

Hi, I am doing one university project about mac address randomization, and I want to change the mac address during the probe request phase only to locally administrated, I tried in function _issue_probereq() function, the driver sends probe request with a new random mac just one and then don't move on to the authentication phase. I tried u8 mac[] = {0xbe, 0xf5, 0x70, 0x99, 0x59, 0x1b} then _rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN)

gteca commented 3 years ago

It turns out that it worked! I was monitoring the wrong channel, now when I monitor the right channel, I can see the changes in MAC address before and after the scanning phase.