Correctly fix the 'scan during STA mode' crash.

This commit is contained in:
Adrian Chadd 2012-11-11 21:58:18 +00:00
parent 58c82ec453
commit 603280386b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=242899

View File

@ -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 */
}