Search Linux Wireless

Re: [RFC v2 5/8] mac80211: setting link-specific mesh power modes when plink opens

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

 



On Mon, 2011-11-21 at 18:40 +0400, Ivan Bezyazychnyy wrote:

> +static inline bool ieee80211s_has_capab_pm(__le16 capab_info)
> +{
> +	return (capab_info & MESHCONF_CAPAB_POWER_SAVE_LEVEL) != 0;
> +}

To me it look like sparse will warn here.

> --- a/net/mac80211/mesh_plink.c
> +++ b/net/mac80211/mesh_plink.c
> @@ -248,6 +248,8 @@ void mesh_neighbour_update(u8 *hw_addr, u32 rates,
>  {
>  	struct ieee80211_local *local = sdata->local;
>  	struct sta_info *sta;
> +	struct ieee80211_mgmt *mgmt = container_of(hw_addr,
> +					struct ieee80211_mgmt, sa[0]);

You've got to be kidding! Change the prototypes accordingly if you need
more stuff.
 
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