Search Linux Wireless

Re: [RFC PATCHv5 1/2] cfg80211: Add connection quality monitoring support to nl80211

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

 



On Fri, 2010-03-19 at 10:03 +0200, Juuso Oikarinen wrote:

> + * @NL80211_CMD_SET_CQM: Connection quality monitor configuration and
> + *      notification. This command is used both as a command (to configure
> + *      a trigger level) and as an event (to indicate the configured level was
> + *      reached.) Setting zero threshold disables the feature.

I've been thinking about this for a while, and I think I finally decided
that I'd prefer another command number for the event. SET doesn't seem
to match the event very well at all.

> +/**
> + * enum nl80211_cqm_rssi_threshold_event - RSSI threshold event
> + * @NL80211_CQM_RSSI_THRESHOLD_EVENT_NONE - No RSSI threshold event occurred

What is none intended for? If it's for any of the other possible future
enhancements, I'd think in that case we just leave out the attribute?

> +static struct nla_policy
> +nl80211_attr_cqm_policy[NL80211_ATTR_CQM_MAX + 1] __read_mostly = {
> +	[NL80211_ATTR_CQM_RSSI_THOLD] = { .type = NLA_U32 },
> +	[NL80211_ATTR_CQM_RSSI_HYST] = { .type = NLA_U8 },

Now I'm confused. Not that I think we'll ever need a hysteresis value
larger than that, but isn't that a little inconsistent?

johannes

--
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