cfg80211: add rfkill support
To be easier on drivers and users, have cfg80211 register an rfkill structure that drivers can access. When soft-killed, simply take down all interfaces; when hard-killed the driver needs to notify us and we will take down the interfaces after the fact. While rfkilled, interfaces cannot be set UP. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
6081162e2e
commit
1f87f7d3a3
@ -181,4 +181,11 @@ static inline int drv_ampdu_action(struct ieee80211_local *local,
|
||||
sta, tid, ssn);
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
|
||||
static inline void drv_rfkill_poll(struct ieee80211_local *local)
|
||||
{
|
||||
if (local->ops->rfkill_poll)
|
||||
local->ops->rfkill_poll(&local->hw);
|
||||
}
|
||||
#endif /* __MAC80211_DRIVER_OPS */
|
||||
|
Reference in New Issue
Block a user