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(¶ms, 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