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]

 



Hi Johannes,

On Monday 10 September 2012 04:58 PM, Johannes Berg wrote:
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?
It would be useful to inform the userspace that the driver/firmware's
limitation of maintaining the maximum number of connected clients is reached. Without this the user may not be clear about why another client cannot be added.

Also, further enhancements/decisions can be made based on this event.

+/* 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?
Thanks. Will change it to have the default value.
+ * 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

Sure. Will change the comment.

Pandiyarajan.P
--
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