Search Linux Wireless

Re: [RFC PATCH 3/6] zd1211rw: let zd_set_beacon_interval() set dtim_period and add AP-beacon flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/12/26 Jussi Kivilinna <jussi.kivilinna@xxxxxxxx>:
> -static int set_beacon_interval(struct zd_chip *chip, u32 interval)
> +static int set_beacon_interval(struct zd_chip *chip, u32 interval,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âu16 dtim_period)

That gets messy. We have interval in interval, flags in interval and
period in dtim_period :|

Do you have idea what is maximum value for dtim_period? It sounds like
it should be 0xff.

Could we maybe try sth like:
u16 interval, u8 dtim_period, u8 flags? Then we would have
flags << 24 | dtim_period << 16 | interval

Or maybe to avoid problems with shifting flags (re-defining defines?),
we could use a little more messy
flags | dtim_period << 16 | interval

Or do you have better idea? Proposed one doesn't seem really clear for me.

-- 
RafaÅ
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux