rfkill: add function to query state
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 2 Jun 2009 11:01:40 +0000 (13:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:06:14 +0000 (14:06 -0400)
commit6081162e2ed78dfcf149b076b047078ab1445cc2
treeaef1cf51ee0a8f77f562defe1fe8ec75812474b7
parent7643a2c3fcc13cd6fbd731f214463547383418ae
rfkill: add function to query state

Sometimes it is necessary to know how the state is,
and it is easier to query rfkill than keep track of
it somewhere else, so add a function for that. This
could later be expanded to return hard/soft block,
but so far that isn't necessary.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/rfkill.h
net/rfkill/core.c