|
@@ -427,10 +427,9 @@ static int nl80211_parse_key_new(struct nlattr *key, struct key_parse *k)
|
|
|
|
|
|
if (tb[NL80211_KEY_DEFAULT_TYPES]) {
|
|
if (tb[NL80211_KEY_DEFAULT_TYPES]) {
|
|
struct nlattr *kdt[NUM_NL80211_KEY_DEFAULT_TYPES];
|
|
struct nlattr *kdt[NUM_NL80211_KEY_DEFAULT_TYPES];
|
|
- int err = nla_parse_nested(kdt,
|
|
|
|
- NUM_NL80211_KEY_DEFAULT_TYPES - 1,
|
|
|
|
- tb[NL80211_KEY_DEFAULT_TYPES],
|
|
|
|
- nl80211_key_default_policy);
|
|
|
|
|
|
+ err = nla_parse_nested(kdt, NUM_NL80211_KEY_DEFAULT_TYPES - 1,
|
|
|
|
+ tb[NL80211_KEY_DEFAULT_TYPES],
|
|
|
|
+ nl80211_key_default_policy);
|
|
if (err)
|
|
if (err)
|
|
return err;
|
|
return err;
|
|
|
|
|
|
@@ -4781,7 +4780,6 @@ static int nl80211_join_ibss(struct sk_buff *skb, struct genl_info *info)
|
|
nla_len(info->attrs[NL80211_ATTR_BSS_BASIC_RATES]);
|
|
nla_len(info->attrs[NL80211_ATTR_BSS_BASIC_RATES]);
|
|
struct ieee80211_supported_band *sband =
|
|
struct ieee80211_supported_band *sband =
|
|
wiphy->bands[ibss.channel->band];
|
|
wiphy->bands[ibss.channel->band];
|
|
- int err;
|
|
|
|
|
|
|
|
err = ieee80211_get_ratemask(sband, rates, n_rates,
|
|
err = ieee80211_get_ratemask(sband, rates, n_rates,
|
|
&ibss.basic_rates);
|
|
&ibss.basic_rates);
|