Also just realized that some of the conversions are wrong, e.g. > @@ -7378,17 +7375,11 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info) > if (info->attrs[NL80211_ATTR_VLAN_ID]) > params.vlan_id = nla_get_u16(info->attrs[NL80211_ATTR_VLAN_ID]); > > - if (info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL]) > - params.listen_interval = > - nla_get_u16(info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL]); > - else > - params.listen_interval = -1; > + params.listen_interval = nla_get_u16_default(info->attrs[NL80211_ATTR_STA_LISTEN_INTERVAL], > + -1); this one clearly is. So need to be more careful with that :) But at least the spatch gives some candidates. johannes