Please find three patches attached with proper description. This
includes:
| fix constant mac addresses in case they are specified more than once
|
| I have
| |pre-up macchanger -m 00:00:00:00:00:01 wlan0
|
| in my network script. The first ifup works, the second fails with:
|
| |mikejones:~# ifup wlan0
| |Permanent MAC: xx:xx:xx:xx:xx:xx (xxx)
| |Current MAC: 00:00:00:00:00:01 (unknown)
| |It's the same MAC!!
| |Failed to bring up wlan0.
and
| Make -A not always use wired MACs
|
| The length of list is computed wrong, it is negative. This results that in
| entries from list_others being picked and never from the the wireless list.
| This patch changes this by taking a 50% - 50% chance. Using the number of
| enties as a delimination would be also possible but since the wireles has way
| less entries is hardly possible.
Sebastian