diff mbox

mac80211: fix function pointer check

Message ID 201006071633.49820.holgerschurig@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Holger Schurig June 7, 2010, 2:33 p.m. UTC
None
diff mbox

Patch

--- linux-wl.orig/net/mac80211/driver-ops.h
+++ linux-wl/net/mac80211/driver-ops.h
@@ -360,7 +360,7 @@  static inline int drv_get_survey(struct
 				struct survey_info *survey)
 {
 	int ret = -EOPNOTSUPP;
-	if (local->ops->conf_tx)
+	if (local->ops->get_survey)
 		ret = local->ops->get_survey(&local->hw, idx, survey);
 	/* trace_drv_get_survey(local, idx, survey, ret); */
 	return ret;