]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/wireless: add COUNTRY to to regulatory device uevent
authorScott James Remnant <keybuk@google.com>
Tue, 8 Mar 2011 18:45:30 +0000 (10:45 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Mar 2011 21:10:57 +0000 (16:10 -0500)
commit4d9d88d121fdd01dd859717909ea3c90173f143a
tree46f08bf9ab7c84a0978d3bc5a6202b0af15a308a
parent80751e2b8ffcbbe065e850d943301aa1ab219599
net/wireless: add COUNTRY to to regulatory device uevent

Regulatory devices issue change uevents to inform userspace of a need
to call the crda tool; however these can often be sent before udevd is
running, and were not previously included in the results of
udevadm trigger (which requests a new change event using the /uevent
attribute of the sysfs object).

Add a uevent function to the device type which includes the COUNTRY
information from the last request if it has yet to be processed, the
case of multiple requests is already handled in the code by checking
whether an unprocessed one is queued in the same manner and refusing
to queue a new one.

The existing udev rule continues to work as before.

Signed-off-by: Scott James Remnant <keybuk@google.com>
Acked-By: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c
net/wireless/reg.h