Search Linux Wireless

Re: [RFC] cfg80211/nl80211: Notify connection request failure in AP mode

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

 



On Mon, 2012-09-10 at 16:23 +0530, Pandiyarajan Pitchaimuthu wrote:
> In AP mode, when a station requests connection to an AP and if the
> request is failed for particular reason, userspace is notified about the
> failure through NL80211_CMD_CONN_FAILED command. Reason for the failure
> is sent through the attribute NL80211_ATTR_CONN_FAILED_REASON.

Why would userspace care?

> +/* AP mode - sta's connection request failed reasons */
> +enum nl80211_connect_failed_reason {
> +	NL80211_CONN_FAIL_MAX_CLIENTS		= 1,
> +	NL80211_CONN_FAIL_BLOCKED_CLIENT	= 2,
> +};

Why number explicitly?

> + * Whenever a station tries to connect to an AP and if the station
> + * could not connect to the AP for some reason, this function is called.

It's not really "for some reason", it's "because the AP rejected it for
some reason"... You're not handling other cases anyway.

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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux