Search Linux Wireless

Re: [RFC] mac80211/cfg80211: Add vif configuration options

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

 



On Fri, Aug 15, 2008 at 12:33 PM, Jouni Malinen <j@xxxxx> wrote:

> @@ -1588,6 +1591,44 @@ static int nl80211_set_bss(struct sk_buf
>        return err;
>  }
>
> +static int nl80211_set_vif(struct sk_buff *skb, struct genl_info *info)
> +{
> +       struct cfg80211_registered_device *drv;
> +       int err;
> +       struct net_device *dev;
> +       struct vif_parameters params;
> +
> +       memset(&params, 0, sizeof(params));
> +       /* default to not changing parameters */
> +       params.drop_unencrypted = -1;
> +       params.userspace_mlme = -1;
> +
> +       if (info->attrs[NL80211_ATTR_VIF_DROP_UNENCRYPTED])
> +               params.userspace_mlme =

This should be params.drop_unencrypted instead right.

> +                   nla_get_u8(info->attrs[NL80211_ATTR_VIF_DROP_UNENCRYPTED]);
> +       if (info->attrs[NL80211_ATTR_VIF_USERSPACE_MLME])
> +               params.userspace_mlme =
> +                   nla_get_u8(info->attrs[NL80211_ATTR_VIF_USERSPACE_MLME]);
--
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