nl80211: use the new genetlink pre/post_doit hooks
authorJohannes Berg <johannes.berg@intel.com>
Mon, 4 Oct 2010 19:36:35 +0000 (21:36 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:37:51 +0000 (13:37 -0400)
commit4c476991062a0a59523c2bf193f09087f469686a
treed7342b806c285f7b0987386c3d5157230f858c43
parentff4c92d85c6f2777d2067f8552e7fefb4d1754ae
nl80211: use the new genetlink pre/post_doit hooks

This makes nl80211 use the new genetlink
pre_doit/post_doit hooks for locking and
checking the interface/wiphy index.

This significantly reduces the code size
and the likelihood of locking errors.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c