Staging: wlan-ng: block ioctls until card fully initialised
authorRichard Kennedy <richard@rsk.demon.co.uk>
Fri, 20 Feb 2009 12:09:12 +0000 (12:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:24 +0000 (14:53 -0700)
commitcfde74517b32724a78896eda49198f147e12050d
treedcca75204f6d88fe846a2b8f7d02d3c2e97446a5
parent18c7f792be75c2430cbf16e22dca1ab6a9881a63
Staging: wlan-ng: block ioctls until card fully initialised

Add a mutex to block ioctls before the card is fully initialised and
only allow one ioctl at a time.
This stops udev trying to load the firmware before to card is fully up.

patch ported from wlan-ng-devel

Karl Relton <karllinuxtest.relton@ntlworld.com> spotted that this was
missing from the staging version,
http://lists.linux-wlan.com/pipermail/linux-wlan-devel/2009-February/003890.html

Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Cc: Karl Relton <karllinuxtest.relton@ntlworld.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/wlan-ng/p80211netdev.c
drivers/staging/wlan-ng/p80211netdev.h
drivers/staging/wlan-ng/prism2usb.c