Open GoogleCodeExporter opened 8 years ago
Which device-profile and setup-method (all in app-settings) are you using?
Have you tried to select the "desire"-profile and "softap"-setting?
Original comment by harald....@gmail.com
on 1 Sep 2011 at 5:56
desire + softap doesent work for me (windows doesent ask for the passphrase).
btw i looked via ifconfig and the HWaddr is still changing every time the
internet sharing is enabled
I use nexus one + netd, which works perfectly for me, aside the annoying
problem mentioned.
Original comment by thesolu...@gmail.com
on 1 Sep 2011 at 12:25
Hi same here, Android AP's interface MAC address keeps changing every time I
create an AP. May that actually be a feature?
Original comment by christia...@googlemail.com
on 2 Dec 2012 at 3:31
I have a Samsung Galaxy Nexus running CyanogenMod 9 (Android ICS) and I've been
experiencing this "bug". This behavior is clearly intentional, but I'm not
sure why...
The Broadcom WiFi driver is the culprit. My driver is called 'bcmdhd', but
yours might be different (check your dmesg output to see). If you "repo" the
CM9 source and cd to the kernel dir like so:
cd kernel/samsung/tuna
You'll find the offending code in this file:
drivers/net/wireless/bcmdhd/dhd_linux.c
It looks like this (I removed some of it):
#ifdef SET_RANDOM_MAC_SOFTAP
// ...
srandom32((uint)jiffies);
rand_mac = random32();
iovbuf[0] = 0x02; /* locally administered bit */
iovbuf[1] = 0x1A;
iovbuf[2] = 0x11;
iovbuf[3] = (unsigned char)(rand_mac & 0x0F) | 0xF0;
iovbuf[4] = (unsigned char)(rand_mac >> 8);
iovbuf[5] = (unsigned char)(rand_mac >> 16);
// ...
}
#endif /* SET_RANDOM_MAC_SOFTAP */
So we see that the last three octets of the SoftAP's BSSID get randomized.
This causes my laptop to always think it's seeing the AP for the very first
time and therefore it never remembers my AP's password (which is annoying)...
The fix for me was to hardcode the last three octets (making them like the
first three) and rebuild the kernel for my phone...
I realize this is not something that most users of android-wifi-tether will
want or be able to do. If someone wanted to create a more general fix in
android-wifi-tether, I think it would be possible as the WiFi driver has some
code nearby where it allows a custom MAC to be assigned, but I did not look
into that...
Original comment by alfred.e...@gmail.com
on 25 Mar 2013 at 5:28
Original issue reported on code.google.com by
thesolu...@gmail.com
on 31 Aug 2011 at 2:04