@@ -849,10 +849,12 @@ static int set_aw_pt_bi(struct zd_chip *chip, struct aw_pt_bi *s)
{
struct zd_ioreq32 reqs[3];
- if (s->beacon_interval <= 5)
- s->beacon_interval = 5;
+ if ((s->beacon_interval & 0xffff) <= 5) {
+ s->beacon_interval &= ~0xffff;
+ s->beacon_interval |= 5;
+ }
if (s->pre_tbtt < 4 || s->pre_tbtt >= s->beacon_interval)
- s->pre_tbtt = s->beacon_interval - 1;
+ s->pre_tbtt = (s->beacon_interval & 0xffff) - 1;
if (s->atim_wnd_period >= s->pre_tbtt)
s->atim_wnd_period = s->pre_tbtt - 1;