View Single Post
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#244
Since last update, I got strange problems with AIS. The thing is, that I've used post-load0 script to set iw reg set JP, and post-up script to change mac address (via macchanger).

lately, I noticed that MAC fails to change (which result in AP assigning wrong IP to my device via DHCP, as it server static leases, based on MAC). I decided to run AIS scripts manually, to see output. Here are the results:

/usr/bin/advifsw/wlan_load0.sh
Code:
ifconfig: wlan0: error fetching interface information: Device not found
libwl1251: netlink family ID is 53
wl1251-cal: Country code: 260
wl1251-cal: Got CAL NVS
wl1251-cal: found MAC address xx:xx:xx:xx:xx:xx
wl1251-cal: netlink family id 52
wl1251-cal: ack_handler()
(mac was replaced by me, manually, it's shown correctly in output)
After this, pop-up for selecting network I want to connect appears, despite fact, that /usr/bin/advifsw/wlan_up.sh wasn't called yet! If I invoke it manually, then...

/usr/bin/advifsw/wlan_up.sh
Code:
start: Job not changed: wlancond
Current MAC: ec:9b:5b:fd:82:37 (unknown)
ERROR: Can't change MAC: interface up or not permission: Device or resource busy
So, it seems again, that interface got up after loading modules, and wlan-up.sh script just tries to repeat, what was already done. This result in failure to change MAC, as interface was up, already.
---

What is strange here - sometimes, it just works (MAC get changed). Thinking about it, I remember, that macchanger got updated some time ago, too - maybe something is wrong with new version?
Edit: Or it wasn't - after checking package interface, it seems that I'm wrong here - macchanger wasn't updated since late 2011, so my memory must be making tricks on me /Edit

But, no mater of macchanger state, there seems to be something wrong with AIS too (interface up, before calling wlan-up.sh), so I'm reporting it here, nevertheless.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!

Last edited by Estel; 2012-10-21 at 15:57.