Search Linux Wireless

Re: [PATCH] mwifiex: remove some element ID's definitions

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

 



On Mon, 2010-12-06 at 22:16 -0800, Bing Zhao wrote:
> From: Amitkumar Karwar <akarwar@xxxxxxxxxxx>
> 
> Those are already defined in include/linux/ieee80211.h
> under "enum ieee80211_eid".

Good patch :)

> -	enum ieee_types_elementid_e element_id;
> +	enum ieee80211_eid element_id;

You should probably just use a u8, since that'll match better what the
value really is, it can't have any more values than that and an enum
really is an "int" not a "u8". Also lets you remove the typecasts (that
I don't think are necessary to start with)

>  enum ieee_types_elementid_e {

>  	BSSCO_2040 = 72,
>  	OVERLAP_BSS_SCAN_PARAM = 74,
>  	EXT_CAPABILITY = 127,

I think you should add these remaining ones into the WLAN_EID_ namespace
instead of keeping them.

> +	WPS_IE = WLAN_EID_VENDOR_SPECIFIC,
> +	WMM_IE = WLAN_EID_VENDOR_SPECIFIC,

And these seem just plain misleading since they don't identify
anything ... one could be tempted to use both in a switch() statement
for example. I'd replace their use with just vendor-specific I think
(although I'm aware that some older code we have in the stack does this
as well, IIRC)

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