From: W. van den Akker Date: Sun, 8 Feb 2009 18:18:33 +0100 Subject: [ath9k-devel] [RFC] Serialization of writes In-Reply-To: <200902071451.24838.listsrv@wilsoft.nl> References: <20090204011216.GA8220@tesla> <200902052327.45051.listsrv@wilsoft.nl> <200902071451.24838.listsrv@wilsoft.nl> Message-ID: <200902081818.34060.listsrv@wilsoft.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Saturday 07 February 2009, W. van den Akker wrote: > On Thursday 05 February 2009, W. van den Akker wrote: > > On Thursday 05 February 2009 23:13:09 Luis R. Rodriguez wrote: > > > On Thu, Feb 05, 2009 at 01:44:15PM -0800, W. van den Akker wrote: > > > > 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. > > > > > > Do you mean when you do this? > > > > > > udevadm monitor --environment kernel > > > > > > > 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 > > > > 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 > > 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 > .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 > .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 > > 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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.