wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
93 stars 51 forks source link

cannot set random mac address for TL-WN722N dongle #34

Open anakin1028 opened 7 years ago

anakin1028 commented 7 years ago

Hi wraith-wireless,

Recently I try to use the function macset in my python program; however when I use it, and it throws the following exception: 5

It seems that the ioctl function raise an IOException.

The following snapshot is set by macchanger, and it set the MAC address successfully. 6

To be more specifically the following is the commands I use in the interactive-Python: 7

Can you help to see this issue? Thanks!

anakin1028 commented 7 years ago

hi, after doing some experiments, it seems that for pyric we can only change mac address when device in managed mode, but not in monitor mode.