Home of the Squeezebox™ & Transporter® network music players.
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 33
  1. #21
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    OK. Nice theory! I kinda liked that one! Now I'm stumped.

  2. #22
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Vństerňs Sweden
    Posts
    16,528

    Thumbs up

    Quote Originally Posted by Davidg1 View Post
    Definitely upgrade to 7.6.

    I found this in some Atheros documentation for the wlan chipset that sounds interesting!



    The Radio definitely seems to be set in world-wide mode.

    It seems from this that if you have APs around you with different Regulatory Domains you might get inconsistent results! One of my neighbours has just moved here from the US and more than likely brought their router with them.

    I'll take a look at that IEEE spec, but since the communication range is defined before connection I don't see how it can do anything but default to the most limited range of frequencies for all neighbouring AP!
    You got it ! I'm away from home for a while so I cant test, wonder what happens if I set my router to US or any router to US maybe I should lug out my old router and set it up as "interference" .

    Maybe you could build a faraday cage line a box with aluminum foil and dump your radio and router there so it only sees your router
    --------------------------------------------------------------------
    Main hifi: Rasbery PI digi+ MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Loggia: Raspi hifiberry dac + Adams
    Bathroom : Radio (with battery)
    iPad with iPengHD & SqueezePad
    (spares Touch, SB3, reciever ,controller )
    server Intel NUC Esxi VM Linux mint 18 LMS 7.9.2

    http://people.xiph.org/~xiphmont/demo/neil-young.html

  3. #23
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    I guess it is still possible. It would not surprise me if some APs broadcast the wrong regulatory domain info, especially if they defaulted to US.

  4. #24
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    OK. Here is some concrete evidence of the problem.

    I'm stopping and starting the wlan repeatedly, all within a few seconds of each other. No reboots, no nothing, just stop the lan and start it again. See on the second channel listing from the bottom I get 13 channels. All the other times 11!

    Code:
    //root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 11 : 2.462 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 01 : 2.412 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ iwlist eth1 freq
    eth1      no frequency information.
    
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    /root$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /root$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    root: wlan started
    /root$ iwlist eth1 freq
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    Last edited by Davidg1; 2011-03-17 at 04:04.

  5. #25
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    At this risk of boring you, here is another test. I've embedded the channel check into the wlan script so it lists the available channels immediately after the driver has loaded. See once we got 13 channels twice in a row!

    Code:
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      11 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    Last edited by Davidg1; 2011-03-17 at 09:50.

  6. #26
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244

    Smile

    I've fixed it!!!!!

    It is possible to set the regulatory domain when loading the driver. I have edited the wlan file to the following:

    Code:
    #!/bin/sh
    
    case "$1" in
        start)
            /usr/bin/logger -s "wlan: starting"
    
    	# Load wlan drivers
    	export WORKAREA=/lib/atheros
    	export EEPROM=${WORKAREA}/calData_ar6102_15dBm.bin
    
    	# Set MAC address to the same as Ethernet
    	macaddr=`/sbin/ifconfig eth0 | sed -ne 's/.*\(..:..:..:..:..:..\).*/\1/p'`
    	if [ "x${macaddr}" != "x" ]
    	    then
    	    echo "Setting eth1 macaddr: ${macaddr}"
    	    SETMAC="--setmac $macaddr"
    	fi
    
    	/lib/atheros/loadAR6000l.sh $SETMAC --setRD 48
    	if [ $? -ne 0 ]; then
    	    /usr/bin/logger -s "wlan: failed"
    	    exit -1
    	fi
    
    	/lib/atheros/wmiconfig -eth1 --filter=all
    
    	# Temporary possible work-a-round to fix wireless connectivity issues
    	# Disable power save mode
    	/lib/atheros/wmiconfig -eth1 --power maxperf
    
    	# todo region codes?
    
    	# Start wpa_supplicant
    	/usr/bin/logger "Starting wpa_supplicant"
    	/usr/sbin/wpa_supplicant -B -Dwext -ieth1 -c/etc/wpa_supplicant.conf
    	/usr/sbin/wpa_cli -B -a/etc/network/wpa_action
    	/usr/bin/logger "Started wpa_supplicant"
    
    	/usr/bin/logger -s "wlan started"
    	;;
    
        stop)
            /usr/bin/logger -s "wlan: stopping"
    
    	# Stop wpa supplicant
    	killall wpa_cli
    	killall wpa_supplicant
    
    	# todo Make sure udhcpc is killed
    	if [ -r /var/run/udhcpc.eth1.pid ]
    	then
    	    PID=`cat /var/run/udhcpc.eth1.pid`
    	    kill -TERM $PID
    	    
    	    # Wait until udhcpc is dead
    	    kill -0 $PID >/dev/null 2>&1
    	    while [ $? == 0 ]; do
    	        sleep 1
    	        kill -0 $PID >/dev/null 2>&1
    	    done
    	fi
    
    	# remove wlan driver
    	/lib/atheros/loadAR6000l.sh unloadall
    
    	/usr/bin/logger -s "wlan stopped"
    	;;
    
        *)
    	echo "Usage: $0 {start|stop}"
            exit 1
    esac
    
    exit 0
    The only change (Line 19) is
    Code:
    /lib/atheros/loadAR6000l.sh $SETMAC --setRD 48
    Now I get this when i start and stop the wlan:

    Code:
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating regulatory code
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating regulatory code
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /lib/atheros/wmiconfig -eth1 --getRD
    wmiconfig: eth1: No such device
    /etc/init.d$ iwlist eth1 freq
    eth1      no frequency information.
    
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating regulatory code
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /lib/atheros/wmiconfig -eth1 --getRD
    Regulatory Domain = 0x30
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating regulatory code
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    /etc/init.d$ /etc/init.d/wlan stop
    root: wlan: stopping
    ..unloading all
    killall: recEvent: no process killed
    root: wlan stopped
    /etc/init.d$ /etc/init.d/wlan start
    root: wlan: starting
    Setting eth1 macaddr: 00:04:20:26:70:EB
    Load Board Data from /lib/atheros/calData_ar6102_15dBm.bin
    Updating regulatory code
    Updating MAC address
    BMI Write Memory (address: 0x502400, filename: /lib/atheros/athwlan.bin)
    BMI Write Memory (address: 0x52d8bc, filename: /lib/atheros/data.patch.hw2_0.bin)
    BMI Write Memory (address: 0x500418, value: 0x52d8bc)
    BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1,  mask:0x1)
    BMI Done
    eth1      13 channels in total; available frequencies :
              Channel 01 : 2.412 GHz
              Channel 02 : 2.417 GHz
              Channel 03 : 2.422 GHz
              Channel 04 : 2.427 GHz
              Channel 05 : 2.432 GHz
              Channel 06 : 2.437 GHz
              Channel 07 : 2.442 GHz
              Channel 08 : 2.447 GHz
              Channel 09 : 2.452 GHz
              Channel 10 : 2.457 GHz
              Channel 11 : 2.462 GHz
              Channel 12 : 2.467 GHz
              Channel 13 : 2.472 GHz
    root: wlan started
    Last edited by Davidg1; 2011-03-17 at 08:17.

  7. #27
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    Bug raised on Bugzilla.

    http://bugs.slimdevices.com/show_bug.cgi?id=17071

    Please vote!

    Please can someone also confirm the bug.
    Last edited by Davidg1; 2011-03-17 at 05:27.

  8. #28
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244
    Anyone wanting to try this, attached is the "wlan" file for the European domain (channels 1-13). Just copy it to "/etc/init.d". You should make a copy of your current wlan file first on your PC, although a factory reset will reset this to the default, so you don't really need to worry.

    Values known to work are:

    --setRD 16 ch 1-11
    --setRD 48 ch 1-13
    --setRD 96 ch 1-14

    That is probably all we need. You may be wondering why the Japanese RD is not 64, at least that is what I thought it should be, but the Radio does not accept that. "96" seems to work though.

    A factory reset not only resets the the wlan file, but also resets the Radio to the default (but apparently broken!) World-Wide Roaming mode. So, you can try this patch without fear!
    Last edited by Davidg1; 2011-03-21 at 10:12.

  9. #29
    Senior Member
    Join Date
    Dec 2009
    Location
    London, UK
    Posts
    244

    Arrow

    Sorry to bump my own thread, but please could someone with appropriate permissions confirm this bug on Bugzilla?

    This is a very clear fault in the way the radio decides its regulatory domain and will mean that, for some users, their Radio simply will not connect to their router when they bring it home, or to others when travelling.

    I'm worried that devs will not even look at it as long as it is one of the many unconfirmed bugs on their system!

  10. #30
    Senior Member Mnyb's Avatar
    Join Date
    Feb 2006
    Location
    Vństerňs Sweden
    Posts
    16,528
    It 's only one vote from being confirmed anyway , 3 votes and it gets confirmed I've already used my vote
    --------------------------------------------------------------------
    Main hifi: Rasbery PI digi+ MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
    Bedroom/Office: Boom
    Loggia: Raspi hifiberry dac + Adams
    Bathroom : Radio (with battery)
    iPad with iPengHD & SqueezePad
    (spares Touch, SB3, reciever ,controller )
    server Intel NUC Esxi VM Linux mint 18 LMS 7.9.2

    http://people.xiph.org/~xiphmont/demo/neil-young.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •