summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/if_ath.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2012-11-11 21:58:18 +0000
committeradrian <adrian@FreeBSD.org>2012-11-11 21:58:18 +0000
commite2f1ae9a7605fb3838b0e3a420610311f3cdc57c (patch)
treef1d30eec406f13552ab0b1c987dce94667d52a55 /sys/dev/ath/if_ath.c
parentcd7d6820646cf7376b7e90045d2dd00e358d4a39 (diff)
downloadFreeBSD-src-e2f1ae9a7605fb3838b0e3a420610311f3cdc57c.zip
FreeBSD-src-e2f1ae9a7605fb3838b0e3a420610311f3cdc57c.tar.gz
Correctly fix the 'scan during STA mode' crash.
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r--sys/dev/ath/if_ath.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c
index 41b3108..4ef23a2 100644
--- a/sys/dev/ath/if_ath.c
+++ b/sys/dev/ath/if_ath.c
@@ -5598,6 +5598,13 @@ ath_node_set_tim(struct ieee80211_node *ni, int enable)
#else
struct ath_vap *avp = ATH_VAP(ni->ni_vap);
+ /*
+ * Some operating omdes don't set av_set_tim(), so don't
+ * update it here.
+ */
+ if (avp->av_set_tim == NULL)
+ return (0);
+
return (avp->av_set_tim(ni, enable));
#endif /* ATH_SW_PSQ */
}
OpenPOWER on IntegriCloud