diff options
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index c3d844093a2f..997008e236ff 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -154,14 +154,15 @@ static inline void drv_update_tkip_key(struct ieee80211_local *local, | |||
154 | } | 154 | } |
155 | 155 | ||
156 | static inline int drv_hw_scan(struct ieee80211_local *local, | 156 | static inline int drv_hw_scan(struct ieee80211_local *local, |
157 | struct ieee80211_sub_if_data *sdata, | ||
157 | struct cfg80211_scan_request *req) | 158 | struct cfg80211_scan_request *req) |
158 | { | 159 | { |
159 | int ret; | 160 | int ret; |
160 | 161 | ||
161 | might_sleep(); | 162 | might_sleep(); |
162 | 163 | ||
163 | ret = local->ops->hw_scan(&local->hw, req); | 164 | ret = local->ops->hw_scan(&local->hw, &sdata->vif, req); |
164 | trace_drv_hw_scan(local, req, ret); | 165 | trace_drv_hw_scan(local, sdata, req, ret); |
165 | return ret; | 166 | return ret; |
166 | } | 167 | } |
167 | 168 | ||
@@ -346,6 +347,15 @@ static inline int drv_ampdu_action(struct ieee80211_local *local, | |||
346 | return ret; | 347 | return ret; |
347 | } | 348 | } |
348 | 349 | ||
350 | static inline int drv_get_survey(struct ieee80211_local *local, int idx, | ||
351 | struct survey_info *survey) | ||
352 | { | ||
353 | int ret = -EOPNOTSUPP; | ||
354 | if (local->ops->conf_tx) | ||
355 | ret = local->ops->get_survey(&local->hw, idx, survey); | ||
356 | /* trace_drv_get_survey(local, idx, survey, ret); */ | ||
357 | return ret; | ||
358 | } | ||
349 | 359 | ||
350 | static inline void drv_rfkill_poll(struct ieee80211_local *local) | 360 | static inline void drv_rfkill_poll(struct ieee80211_local *local) |
351 | { | 361 | { |