提交 35dd0509 编写于 作者: H Holger Schurig 提交者: John W. Linville

mac80211: fix function pointer check

This makes "iw wlan0 dump survey" work again with
mac80211-based drivers that support it, e.g. ath5k.
Signed-off-by: NHolger Schurig <holgerschurig@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 e500ae5b
...@@ -349,7 +349,7 @@ static inline int drv_get_survey(struct ieee80211_local *local, int idx, ...@@ -349,7 +349,7 @@ static inline int drv_get_survey(struct ieee80211_local *local, int idx,
struct survey_info *survey) struct survey_info *survey)
{ {
int ret = -EOPNOTSUPP; int ret = -EOPNOTSUPP;
if (local->ops->conf_tx) if (local->ops->get_survey)
ret = local->ops->get_survey(&local->hw, idx, survey); ret = local->ops->get_survey(&local->hw, idx, survey);
/* trace_drv_get_survey(local, idx, survey, ret); */ /* trace_drv_get_survey(local, idx, survey, ret); */
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册