correct handling of dtim for periods > 1

Obtained from:	madwifi
This commit is contained in:
Sam Leffler 2005-12-05 22:14:13 +00:00
parent ac7326e338
commit a196b35f08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153139

View File

@ -1642,7 +1642,7 @@ ieee80211_beacon_update(struct ieee80211com *ic, struct ieee80211_node *ni,
else
tie->tim_count--;
/* update state for buffered multicast frames on DTIM */
if (mcast && (tie->tim_count == 1 || tie->tim_period == 1))
if (mcast && tie->tim_count == 0)
tie->tim_bitctl |= 1;
else
tie->tim_bitctl &= ~1;