Serialization of writes
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.
Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/tmp/serialize.patch
Luis
Quoted 9 lines · Luis R. Rodriguez
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.
Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
Quoted 8 lines
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/tmp/serialize.patch
On second thought, this should be pretty useless since because we have only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,
Luis
Quoted 16 lines · Luis R. Rodriguez
Quoted 14 lines · Luis R. Rodriguez
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.
Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Quoted 8 lines
Quoted 4 lines
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/
tmp/serialize.patchOn second thought, this should be pretty useless since because we have only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,
So the PCIe chip/cards (AR5418) are not prone to this serial write problem?
That would be interesting, I have one (a D-Link DWA-556) and put it into my SMP
system tonight testing this patch (my AR5416 is busy unfortunately in a non PCIe system).
Well it seems the SMP system is running quite stable with the AR5418, and it was doing
hard lockups like the others with SMP see with the AR5416 I have. Not sure exactly
what that shows, but figure it's an interesting tidbit of information, and I'm happy now
because that's the system I really wanted to have the wireless AP on initially. I'll report
back if it isn't so stable long term, and I'm sticking to G mode too because in N mode
the PCIe card doesn't do well with outgoing traffic (same as my PCI card, great incoming
slow outgoing in N mode) but it weirdly
does the G clients (when in N mode) normal speed (15-20 Mbit/s, both input/output). I'm not sure why,
maybe the PCIe card is different enough, or a fluke, but it's the same software versions
and config files on both systems. I'm wondering if this PCIe card really doesn't lock up
SMP systems, and it's not picky about serial writes, does that say it's a serial write problem
or is there possibly even more difference between the two chip versions and something
else could be wrong (but seems to point out that locking possibly isn't the issue, since both
I would guess are generally treated the same with the general locking in the driver). I didn't
realize there was that much difference in the two chips, but guessing there must be.
Thanks,
Chris
Quoted 6 lines
Luis
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Quoted 17 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 14 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.
Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Quoted 9 lines
Quoted 4 lines
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/tmp/se
rialize.patchOn second thought, this should be pretty useless since because we have only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,
I will test this and will report back..
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 20 lines · W. van den Akker
Quoted 19 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 16 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.
Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Feedback on results is appreciated.
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/ath9k/tmp/
se rialize.patchOn second thought, this should be pretty useless since because we have only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,
I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the adapter to work:
xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory
I am using hostapd 0.6.7.
Greetings,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 48 lines · W. van den Akker
Quoted 26 lines · W. van den Akker
Quoted 25 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 21 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 4 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory
Quoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
export COUNTRY=CO/sbin/crda
hostapd -dd /etc/hostapd/hostapd.conf
For some reason I just have to run crda manually (I have udev script setup in proper place),
again two perfectly identically setup systems but one I didn't apply the patch (non-SMP). So I figured I messed something up, not sure how the spinlock in the patch would prevent udev from running right for the first reg domain set but not effect anything else, and then let hostapd set it (because I have US set in hostapd.conf as the reg domain and it calls it fine then).
Log attached with debug level set to show what mine is doing....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log3.gz
Type: application/x-gzip
Size: 6266 bytes
Desc: not available
Url : http://lists.ath9k.org/pipermail/ath9k-devel/attachments/20090204/f0d3ef2e/attachment-0001.bin
-------------- next part --------------
Thanks,
Chris
Quoted 13 lines
Greetings,
WillemSignature · 8 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. _______________________________________________ ath9k-devel mailing list ath9k-devel at lists.ath9k.org https://lists.ath9k.org/mailman/listinfo/ath9k-devel
Quoted 62 lines · Chris Kennedy
Quoted 48 lines · W. van den Akker
Quoted 26 lines · W. van den Akker
Quoted 25 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 21 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.
Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 4 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs. Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your /sbin/crda with something like this:
#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crda
Please keep in mind the old crda used to put the udev rule into /etc/udev/rules.d/regulatory.rules -- this can be removed and the new place is /lib/udev/rules.d/85-regulatory.rules
Note that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Luis
Quoted 84 lines · Luis R. Rodriguez
Quoted 65 lines · Chris Kennedy
Quoted 51 lines · W. van den Akker
Quoted 28 lines · W. van den Akker
Quoted 27 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 8 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crda
Quoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from /etc/udev/rules.d and modified the / lib/udev/ one nothing was in /tmp/, but when
putting the new script in the /etc/udev/rules.d/ then I got the /tmp/ log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in /etc/udev/ and have it
doing the log now in that script now.
Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is /lib/udev/ exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).
-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----
Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into /lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.
Thanks,
Chris
Quoted 2 lines
Luis
Quoted 140 lines · Chris Kennedy
Quoted 84 lines · Luis R. Rodriguez
Quoted 65 lines · Chris Kennedy
Quoted 51 lines · W. van den Akker
Quoted 28 lines · W. van den Akker
Quoted 27 lines · Luis R. Rodriguez
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 8 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.
Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.
Something with the udev rule location may be fishy -- the reason I started putting it into /lib/udev/ was the big fat warning on debian systems on the README on /etc/udev/rules.d/ and /lib/udev/rules.d. According to it packages should not put rules into /etc/udev/rules.d and it seems /lib/udev/rules.d/ is the common place. I verified this at least on FC10, Debian and Ubuntu.
Luis
Quoted 148 lines · Chris Kennedy
Quoted 140 lines · Luis R. Rodriguez
Quoted 85 lines · Chris Kennedy
Quoted 65 lines · W. van den Akker
Quoted 52 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 8 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.
Quoted 7 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 149 lines · W. van den Akker
Quoted 142 lines · Chris Kennedy
Quoted 134 lines · Luis R. Rodriguez
Quoted 81 lines · Chris Kennedy
Quoted 62 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.
Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the /lib/udev/rules.d directory. Then running crda (also after booting)
then I 'export COUNTRY=NL'
but running the script above from Luis I get:
Thu Feb 5 19:24:12 CET 2009
NL
----
Failed to set regulatory domain: -22
Also moving the script to the /etc/udev/rules.d makes no differences.
By the way, its a Debian system.
Thanks,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 166 lines · W. van den Akker
Quoted 149 lines · W. van den Akker
Quoted 142 lines · Chris Kennedy
Quoted 134 lines · Luis R. Rodriguez
Quoted 81 lines · Chris Kennedy
Quoted 62 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)then I 'export COUNTRY=NL'
but running the script above from Luis I get:
Thu Feb 5 19:24:12 CET 2009
NL
----
Failed to set regulatory domain: -22
Quoted 3 lines
Also moving the script to the
/etc/udev/rules.dmakes no differences.By the way, its a Debian system.
What kernel do you have?
Luis
Quoted 1 line · On Thursday 05 February 2009 20:42:55 Luis R. Rodriguez wrote:
On Thu, Feb 5, 2009 at 10:28 AM, W. van den Akker <[email protected]>
Quoted 167 lines · wrote:
Quoted 167 lines · W. van den Akker
Quoted 150 lines
Quoted 143 lines · Chris Kennedy
Quoted 135 lines · Luis R. Rodriguez
Quoted 82 lines · Chris Kennedy
Quoted 63 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)then I 'export COUNTRY=NL'
but running the script above from Luis I get:
Thu Feb 5 19:24:12 CET 2009
NL
----
Failed to set regulatory domain: -22
Quoted 7 lines
Quoted 3 lines
Also moving the script to the
/etc/udev/rules.dmakes no differences.By the way, its a Debian system.
What kernel do you have?
Luis
I use the latest wireless git with the SMP patch applied. So it is 2.6.29-rc3
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 1 line · On Thursday 05 February 2009 20:42:55 Luis R. Rodriguez wrote:
On Thu, Feb 5, 2009 at 10:28 AM, W. van den Akker <[email protected]>
Quoted 167 lines · wrote:
Quoted 167 lines · W. van den Akker
Quoted 150 lines
Quoted 143 lines · Chris Kennedy
Quoted 135 lines · Luis R. Rodriguez
Quoted 82 lines · Chris Kennedy
Quoted 63 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)then I 'export COUNTRY=NL'
but running the script above from Luis I get:
Thu Feb 5 19:24:12 CET 2009
NL
----
Failed to set regulatory domain: -22
Quoted 7 lines
Quoted 3 lines
Also moving the script to the
/etc/udev/rules.dmakes no differences.By the way, its a Debian system.
What kernel do you have?
Luis
perhaps an issue to mention.
The kernel option CONFIG_WIRELESS_OLD_REGULATORY is set to 'y'
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 157 lines · W. van den Akker
Quoted 1 line · On Thursday 05 February 2009 20:42:55 Luis R. Rodriguez wrote:
On Thu, Feb 5, 2009 at 10:28 AM, W. van den Akker <[email protected]>
Quoted 154 lines · wrote:
Quoted 154 lines · W. van den Akker
Quoted 153 lines
Quoted 143 lines · Chris Kennedy
Quoted 135 lines · Luis R. Rodriguez
Quoted 82 lines · Chris Kennedy
Quoted 63 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.First I have to make crda running on my system. It isnt installed on debian.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)then I 'export COUNTRY=NL'
You shouldn't be setting this, CRDA will set it to what it should be, the kernel will reject any country it doesn't expect. The example I gave was to print it out to see if the udev script was being picked up.
Luis
Quoted 172 lines · W. van den Akker
Quoted 1 line · On Thursday 05 February 2009 20:42:55 Luis R. Rodriguez wrote:
On Thu, Feb 5, 2009 at 10:28 AM, W. van den Akker <[email protected]>
Quoted 169 lines · wrote:
Quoted 169 lines · W. van den Akker
Quoted 150 lines
Quoted 143 lines · Chris Kennedy
Quoted 135 lines · Luis R. Rodriguez
Quoted 82 lines · Chris Kennedy
Quoted 63 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is required for AR5416 and AR9280 PCI devices. This was not implemented in ath9k
though. Here's an attempt, but I have no way of testing this as I haven't had issues with my systems or cards. I am not sure if this
should fix some of the current issues being reported but it may help.Those who have issues on SMP systems with hostapd locking up -- please give this a whirl, let me know if it helps.
This has 3 patches in 1 file, the one that counts it the third one
but just apply it all together, 'patch -p1 serialize.patch' ( for compat-wireless users or testers) or 'git am serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patches/
ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when
putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)then I 'export COUNTRY=NL'
but running the script above from Luis I get:
Thu Feb 5 19:24:12 CET 2009
NL
----
Failed to set regulatory domain: -22Also moving the script to the
/etc/udev/rules.dmakes no differences.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
By the way, its a Debian system.
What kernel do you have?
Luis
perhaps an issue to mention.
The kernel optionCONFIG_WIRELESS_OLD_REGULATORYis set to 'y'
That's fine, this just means the kernel is built with a static "US" regulatory domain and it default to it by default. But driver regulatory hints will still be listened to..
Luis
Quoted 7 lines · On Thursday 05 February 2009 22:33:32 Luis R. Rodriguez wrote:
Quoted 6 lines · W. van den Akker
Quoted 1 line · On Thursday 05 February 2009 20:42:55 Luis R. Rodriguez wrote:
On Thu, Feb 5, 2009 at 10:28 AM, W. van den Akker <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines · W. van den Akker
Quoted 1 line
Quoted 1 line
On Wed, Feb 4, 2009 at 2:43 PM, Chris Kennedy <[email protected]>
Quoted 158 lines · wrote:
Quoted 158 lines
Quoted 158 lines
Quoted 158 lines
Quoted 149 lines
Quoted 142 lines
Quoted 135 lines · Luis R. Rodriguez
Quoted 82 lines · Chris Kennedy
Quoted 63 lines · W. van den Akker
Quoted 50 lines · W. van den Akker
Quoted 28 lines · Luis R. Rodriguez
Quoted 27 lines
On Tue, Feb 3, 2009 at 5:12 PM, Luis R. Rodriguez
Quoted 23 lines · <[email protected]> wrote:
Some devices requires serialization of writes, this is
required for AR5416 and AR9280 PCI devices. This was not
implemented in ath9k
though. Here's an attempt, but I have no way of testing
this as I haven't had issues with my systems or cards. I am
not sure if this
should fix some of the current issues being reported but it
may help.Those who have issues on SMP systems with hostapd locking
up -- please give this a whirl, let me know if it helps.This has 3 patches in 1 file, the one that counts it the
third one
but just apply it all together, 'patch -p1 serialize.patch'
( for compat-wireless users or testers) or 'git am
serialize.patch' for git users.Feedback on results is appreciated.
http://www.kernel.org/pub/linux/kernel/people/mcgrof/patche
s/ ath9k/tmp/
se rialize.patchQuoted 7 lines
Quoted 5 lines
On second thought, this should be pretty useless since because we have
only one tasklet and tasklets are not re-entrant on different CPUs.
Hm,,,I will test this and will report back..
I have updated the git and applied the patch. But hostapd cannot start the
adapter to work:xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 1 line
I am using hostapd 0.6.7.
I'm not sure why this happened on my system, because i have two duplicated identical systems and one works without the patch without needing this. The one doing the same thing as yours I just put a card in though so I was thinking maybe it was something I did, but if yours is doing it too then that's odd. On mine, for the time being till I figure it out, I get it to work by doing the following (which is odd because I'm basically jump-starting udev, but udev should be working and does the second reg set)...
Quoted 6 lines
export COUNTRY=CO
/sbin/crda
hostapd -dd/etc/hostapd/hostapd.confFor some reason I just have to run crda manually (I have udev script setup in proper place),
I've now have heard a few issues with crda udev stuff. Please test the udev rule by writing a bash script for your
/sbin/crdawith something like this:#!/bin/bash
LOG=/tmp/crda.log
echo $(date) >> $LOG
echo $COUNTRY >> $LOG
echo ------ >> $LOG/sbin/crdaQuoted 6 lines
Please keep in mind the old crda used to put the udev rule into
/etc/udev/rules.d/regulatory.rules-- this can be removed and the new place is/lib/udev/rules.d/85-regulatory.rulesNote that restarting udev is not required as udev has an inotify for the daemon on the directories IIRC.
Oddly when I removed script from
/etc/udev/rules.dand modified the /lib/udev/one nothing was in/tmp/, but when putting the new script in the/etc/udev/rules.d/then I got the/tmp/log thingy working.
Also I was able to have it actually work right, seems to have done it properly now,
only thing different would be that I remove/replaced that udev rule file in/etc/udev/and have it
doing the log now in that script now.Here's the log, seems correct, all I can think is that during bootup it isn't doing
this properly. did possibly moving the script away/back make udev see it now?
How is/lib/udev/exactly working, doesn't seem to be used by my system, that
script is sitting in there all alone :), and doesn't seem to play ball with the udev system (version 124).-----
Wed Feb 4 16:21:26 CST 2009
00
-----
Wed Feb 4 16:21:26 CST 2009
CO
-----
Wed Feb 4 16:21:49 CST 2009
US
-----Also this explains why I've had to manually put the udev rules into / etc/udev/rules.d/,
and didnt' realize it was putting one into/lib/udevl/rules.d, yet that just doesn't work
on my system at all (newest Gentoo, everything up to date). Not sure why one system
boots up fine and does this, always has, and other system I just put a card into didn't
on bootup but now does when I went through unloading ath9k, mac80211, cfg80211 and
reloading ath9k and running hostapd, now everything went smooth as the log shows.Quoted 6 lines
So definitely I'm confused now, can't just reboot this system till later tonight to see if it all reboots
correctly now, but I'm suspecting it will since the mod load worked like it should, that log of
my bootup does seem like it may load the driver pretty early, not sure if that could be a problem.Quoted 6 lines
Something with the udev rule location may be fishy -- the reason I started putting it into
/lib/udev/was the big fat warning on debian systems on the README on/etc/udev/rules.d/and/lib/udev/rules.d. According to it packages should not put rules into/etc/udev/rules.dand it seems/lib/udev/rules.d/is the common place. I verified this at least on FC10, Debian and Ubuntu.Quoted 4 lines
First I have to make crda running on my system. It isnt installed on debian.
Will report back....
I try to run the CRDA\Udev stuff. I installed the rules in the
/lib/udev/rules.ddirectory. Then running crda (also after booting)
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
then I 'export COUNTRY=NL'
You shouldn't be setting this, CRDA will set it to what it should be, the kernel will reject any country it doesn't expect. The example I gave was to print it out to see if the udev script was being picked up.
Luis
Whatever I have filled in (hostapd.conf entry country_code set or default) is giving the same result. The 'NL' option is recognized. I browsed the code of crda and the check for the country code is ok.
Also udevadm monitor doesnt give any feedback on user-events. I woud assume if I use crda or start hostapd it would give some kind of output..
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 5 lines · W. van den Akker
Whatever I have filled in (hostapd.conf entry
country_codeset or default) is giving the same result. The 'NL' option is recognized. I browsed the code of crda and the check for the country code is ok.Also udevadm monitor doesnt give any feedback on user-events.
Do you mean when you do this?
udevadm monitor --environment kernel
Quoted 2 lines
I woud assume if I use crda or start hostapd it would give some kind of output..
Yeah you can also just use this to test this:
iw reg set NL
Mind, you if you already set NL it will just return 0 as that was already set, so you may want to try some other country and then switch back to another one to run these tests.
Luis
Quoted 16 lines · On Thursday 05 February 2009 23:13:09 Luis R. Rodriguez wrote:
Quoted 5 lines · W. van den Akker
Whatever I have filled in (hostapd.conf entry
country_codeset or default) is giving the same result. The 'NL' option is recognized. I browsed the code of crda and the check for the country code is ok.Also udevadm monitor doesnt give any feedback on user-events.
Do you mean when you do this?
udevadm monitor --environment kernel
Quoted 2 lines
I woud assume if I use crda or start hostapd it would give some kind of output..
Yeah you can also just use this to test this:
Quoted 8 lines
iw reg set NL
Mind, you if you already set NL it will just return 0 as that was already set, so you may want to try some other country and then switch back to another one to run these tests.
Luis
ok using iw reg set NL give the following output:
UEVENT[1233872197.595448] change /devices/platform/regulatory.0 (platform)
ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245
UDEV [1233872197.599832] change /devices/platform/regulatory.0 (platform)
UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245
UDEVD_EVENT=1
So this looks promissing... doesnt it?
It shows the UDEV rules are correctly installed..
Question is why hostapd wont start the adapter into an AP.
xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 61 lines · W. van den Akker
Quoted 16 lines · On Thursday 05 February 2009 23:13:09 Luis R. Rodriguez wrote:
Quoted 5 lines · W. van den Akker
Whatever I have filled in (hostapd.conf entry
country_codeset or default) is giving the same result. The 'NL' option is recognized. I browsed the code of crda and the check for the country code is ok.Also udevadm monitor doesnt give any feedback on user-events.
Do you mean when you do this?
udevadm monitor --environment kernel
Quoted 2 lines
I woud assume if I use crda or start hostapd it would give some kind of output..
Yeah you can also just use this to test this:
Quoted 8 lines
iw reg set NL
Mind, you if you already set NL it will just return 0 as that was already set, so you may want to try some other country and then switch back to another one to run these tests.
Luis
ok using iw reg set NL give the following output:
UEVENT[1233872197.595448] change /devices/platform/regulatory.0
(platform) ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245UDEV [1233872197.599832] change /devices/platform/regulatory.0
(platform) UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245
UDEVD_EVENT=1So this looks promissing... doesnt it?
It shows the UDEV rules are correctly installed..Question is why hostapd wont start the adapter into an AP.
xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory
Quoted 2 lines
gr,
Willem
When I run hostapd -dd /etc/hostapd/hostapd.con, I get Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0
Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code
wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directory
the udevadm monitor --environment kernel gives for the command above:
UDEV the event which udev sends out after rule processing UEVENT the kernel uevent
UEVENT[1234014277.977997] add /class/net/mon.wlan0 (net)
ACTION=add
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1253
UDEV [1234014277.991195] add /class/net/mon.wlan0 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1253
UDEVD_EVENT=1
UEVENT[1234014278.022651] remove /class/net/mon.wlan0 (net)
ACTION=remove
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1254
UDEV [1234014278.029097] remove /class/net/mon.wlan0 (net)
UDEV_LOG=3
ACTION=remove
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1254
UDEVD_EVENT=1
Also if I do a 'iw reg set NL', I get
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[HEADER] 16 octets
.nlmsg_len = 36
.nlmsg_type = 2 <ERROR>
.nlmsg_flags = 0 <>
.nlmsg_seq = 1234014506
.nlmsg_pid = 6291
[ERRORMSG] 20 octets
.error = -11 "Resource temporarily unavailable"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.nlmsg_type = 20 <0x14>
.nlmsg_flags = 5 <REQUEST,ACK>
.nlmsg_seq = 1234014506
.nlmsg_pid = 6291--------------------------- END NETLINK MESSAGE ---------------------------
command failed: Resource temporarily unavailable (-11)
No output in udevadm....
This was working in 2.9.29-rc2-wl but is broken in 2.9.29-rc3-wl
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 144 lines · W. van den Akker
Quoted 61 lines · W. van den Akker
Quoted 16 lines · On Thursday 05 February 2009 23:13:09 Luis R. Rodriguez wrote:
Quoted 5 lines · W. van den Akker
Whatever I have filled in (hostapd.conf entry
country_codeset or default) is giving the same result. The 'NL' option is recognized. I browsed the code of crda and the check for the country code is ok.Also udevadm monitor doesnt give any feedback on user-events.
Do you mean when you do this?
udevadm monitor --environment kernel
Quoted 2 lines
I woud assume if I use crda or start hostapd it would give some kind of output..
Yeah you can also just use this to test this:
Quoted 8 lines
iw reg set NL
Mind, you if you already set NL it will just return 0 as that was already set, so you may want to try some other country and then switch back to another one to run these tests.
Luis
ok using iw reg set NL give the following output:
UEVENT[1233872197.595448] change /devices/platform/regulatory.0
(platform) ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245UDEV [1233872197.599832] change /devices/platform/regulatory.0
(platform) UDEV_LOG=3
ACTION=change
DEVPATH=/devices/platform/regulatory.0
SUBSYSTEM=platform
COUNTRY=NL
PHYSDEVBUS=platform
MODALIAS=platform:regulatory
SEQNUM=1245
UDEVD_EVENT=1So this looks promissing... doesnt it?
It shows the UDEV rules are correctly installed..Question is why hostapd wont start the adapter into an AP.
xxx:/home/xx# hostapd -dd /etc/hostapd/hostapd.conf Configuration file: /etc/hostapd/hostapd.conf ctrl_interface_group=0 Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directoryQuoted 2 lines
gr,
WillemWhen I run hostapd -dd
/etc/hostapd/hostapd.con, I get Configuration file:/etc/hostapd/hostapd.confctrl_interface_group=0
Opening raw packet socket for ifindex 1688 BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits) Failed to set country code
wlan0: Unable to setup interface. rmdir[ctrl_interface]: No such file or directorythe udevadm monitor --environment kernel gives for the command above:
UDEV the event which udev sends out after rule processing UEVENT the kernel uevent
UEVENT[1234014277.977997] add /class/net/mon.wlan0 (net)
ACTION=add
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1253UDEV [1234014277.991195] add /class/net/mon.wlan0 (net)
UDEV_LOG=3
ACTION=add
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1253
UDEVD_EVENT=1UEVENT[1234014278.022651] remove /class/net/mon.wlan0 (net)
ACTION=remove
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1254UDEV [1234014278.029097] remove /class/net/mon.wlan0 (net)
UDEV_LOG=3
ACTION=remove
DEVPATH=/class/net/mon.wlan0
SUBSYSTEM=net PHYSDEVPATH=/devices/pci0000:00/0000:00:1c.0/0000:03:02.0 PHYSDEVBUS=pci
PHYSDEVDRIVER=ath9k
INTERFACE=mon.wlan0
IFINDEX=11
SEQNUM=1254
UDEVD_EVENT=1Also if I do a 'iw reg set NL', I get
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE
--------------------------- [HEADER] 16 octets.nlmsg_len = 36 .nlmsg_type = 2 <ERROR> .nlmsg_flags = 0 <> .nlmsg_seq = 1234014506 .nlmsg_pid = 6291 [ERRORMSG] 20 octets .error = -11 "Resource temporarily unavailable" [ORIGINAL MESSAGE] 16 octets .nlmsg_len = 16 .nlmsg_type = 20 <0x14> .nlmsg_flags = 5 <REQUEST,ACK> .nlmsg_seq = 1234014506 .nlmsg_pid = 6291
Quoted 9 lines
--------------------------- END NETLINK MESSAGE --------------------------- command failed: Resource temporarily unavailable (-11)
No output in udevadm....
This was working in 2.9.29-rc2-wl but is broken in 2.9.29-rc3-wl
To test the seralization patch I have applied it to the 2.6.29-rc3 kernel release. It didnt make any differences. The system hangs within minutes after a reboot. So the patch didnt work.
I couldnt test with he 2.6.29-rc3-wl kernel becuause of the problems mentioned in the quoted text abouve. Kernel 2.6.29-rc3 didnt have such problems.
If more information needed I would gladly give them.
gr,
Willem
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Quoted 4 lines · W. van den Akker
To test the seralization patch I have applied it to the 2.6.29-rc3 kernel release. It didnt make any differences. The system hangs within minutes after a reboot. So the patch didnt work.
Thanks for testing, will have to re-think serialization requirements (unless that is not your specific issue). Essentially this was an attempt to port what our driver does in windows for serialization. The way its handled there is the write is serialized by calling the write to a register through NdisMSynchronizeWithInterrupt(). I just checked ndiswrapper code and if their port work is correct it seems a spin_lock_irqsave() is the right port for ath9k except ndiswrapper holds the lock per interrupt which means ndiswrapper may actually allow other CPUs to write while another has its writes going (which I am not sure if it is correct). Anyway if someone is truly familiar with NdisMSynchronizeWithInterrupt() please let me know, I'll have to do some more digging to ensure we do it correctly. Keep in mind mac80211 callbacks and timers.
Quoted 4 lines
I couldnt test with he 2.6.29-rc3-wl kernel becuause of the problems mentioned in the quoted text abouve. Kernel 2.6.29-rc3 didnt have such problems.
If more information needed I would gladly give them.
Yes, I wan to try to reproduce your issues, please compile ath9k with debugging enabled [1] and when loading ath9k enable ATH_DBG_REGULATORY. Please post your log of that:
sudo rmmod ath9k mac80211 cfg80211
sudo dmesg -c > /dev/null
sudo modprobe ath9k debug=0x00000080
Please use the latest code from wireless-testing so if you had issues with hostapd on SMP please boot with only one CPU enabled.
What version of udev and hal (freedesktop.org HAL) do you have?
Please also post your hostapd.conf.
[1] http://linuxwireless.org/en/users/Drivers/ath9k#Enablingdebug
Luis