diff options
author | adrian <adrian@FreeBSD.org> | 2012-11-11 21:58:18 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-11-11 21:58:18 +0000 |
commit | e2f1ae9a7605fb3838b0e3a420610311f3cdc57c (patch) | |
tree | f1d30eec406f13552ab0b1c987dce94667d52a55 /sys/dev/ath/if_ath.c | |
parent | cd7d6820646cf7376b7e90045d2dd00e358d4a39 (diff) | |
download | FreeBSD-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.c | 7 |
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 */ } |