Skip to contentSkip to conversation

mac80211: Fix bss_info_changed comment regarding sleeping

PATCH New Ivo van Doorn 1 participant 1 message Jun 7, 2010 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mac80211: Fix bss_info_changed comment regarding sleeping

The bss_info_changed callback function is allowed to sleep, however when operating in Mesh mode, it can be used in atomic context. Fixing it would seem to require major locking changes in the mesh implementation.

---
 include/net/mac80211.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
include/net/mac80211.h +2 -1
index de22cbf..73cf3ad 100644
@@ -1533,7 +1533,8 @@ enum ieee80211_ampdu_mlme_action {
  *	This function should not be used if no BSS has been set, unless
  *	for association indication. The @changed parameter indicates which
  *	of the bss parameters has changed when a call is made. The callback
- *	can sleep.
+ *	can sleep except when operating in Mesh mode where the callback
+ *	must be atomic.
  *
  * @prepare_multicast: Prepare for multicast filter configuration.
  *	This callback is optional, and its return value is passed
Signature · 1 line
1.6.6.1