diff options
-rw-r--r-- | include/net/mac80211.h | 2 | ||||
-rw-r--r-- | net/mac80211/driver-ops.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index f56d6f479532..f64402f6312b 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1489,7 +1489,7 @@ enum ieee80211_ampdu_mlme_action { | |||
1489 | * @update_tkip_key: See the section "Hardware crypto acceleration" | 1489 | * @update_tkip_key: See the section "Hardware crypto acceleration" |
1490 | * This callback will be called in the context of Rx. Called for drivers | 1490 | * This callback will be called in the context of Rx. Called for drivers |
1491 | * which set IEEE80211_KEY_FLAG_TKIP_REQ_RX_P1_KEY. | 1491 | * which set IEEE80211_KEY_FLAG_TKIP_REQ_RX_P1_KEY. |
1492 | * The callback can sleep. | 1492 | * The callback must be atomic. |
1493 | * | 1493 | * |
1494 | * @hw_scan: Ask the hardware to service the scan request, no need to start | 1494 | * @hw_scan: Ask the hardware to service the scan request, no need to start |
1495 | * the scan state machine in stack. The scan must honour the channel | 1495 | * the scan state machine in stack. The scan must honour the channel |
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 40c6e9a89864..6c31f38ac7f5 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -144,8 +144,6 @@ static inline void drv_update_tkip_key(struct ieee80211_local *local, | |||
144 | { | 144 | { |
145 | struct ieee80211_sta *ista = NULL; | 145 | struct ieee80211_sta *ista = NULL; |
146 | 146 | ||
147 | might_sleep(); | ||
148 | |||
149 | if (sta) | 147 | if (sta) |
150 | ista = &sta->sta; | 148 | ista = &sta->sta; |
151 | 149 | ||