mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
This commit is contained in:
commit
9316f0e3c6
130 changed files with 3664 additions and 918 deletions
|
|
@ -5656,8 +5656,10 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info)
|
|||
sizeof(connect.ht_capa_mask));
|
||||
|
||||
if (info->attrs[NL80211_ATTR_HT_CAPABILITY]) {
|
||||
if (!info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK])
|
||||
if (!info->attrs[NL80211_ATTR_HT_CAPABILITY_MASK]) {
|
||||
kfree(connkeys);
|
||||
return -EINVAL;
|
||||
}
|
||||
memcpy(&connect.ht_capa,
|
||||
nla_data(info->attrs[NL80211_ATTR_HT_CAPABILITY]),
|
||||
sizeof(connect.ht_capa));
|
||||
|
|
|
|||
|
|
@ -1949,8 +1949,7 @@ static void restore_regulatory_settings(bool reset_user)
|
|||
if (reg_request->initiator !=
|
||||
NL80211_REGDOM_SET_BY_USER)
|
||||
continue;
|
||||
list_del(®_request->list);
|
||||
list_add_tail(®_request->list, &tmp_reg_req_list);
|
||||
list_move_tail(®_request->list, &tmp_reg_req_list);
|
||||
}
|
||||
}
|
||||
spin_unlock(®_requests_lock);
|
||||
|
|
@ -2009,8 +2008,7 @@ static void restore_regulatory_settings(bool reset_user)
|
|||
"into the queue\n",
|
||||
reg_request->alpha2[0],
|
||||
reg_request->alpha2[1]);
|
||||
list_del(®_request->list);
|
||||
list_add_tail(®_request->list, ®_requests_list);
|
||||
list_move_tail(®_request->list, ®_requests_list);
|
||||
}
|
||||
spin_unlock(®_requests_lock);
|
||||
|
||||
|
|
|
|||
|
|
@ -815,7 +815,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
|
|||
return NULL;
|
||||
|
||||
if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC &&
|
||||
(signal < 0 || signal > 100)))
|
||||
(signal < 0 || signal > 100)))
|
||||
return NULL;
|
||||
|
||||
if (WARN_ON(len < offsetof(struct ieee80211_mgmt, u.probe_resp.variable)))
|
||||
|
|
|
|||
|
|
@ -478,13 +478,13 @@ void wireless_send_event(struct net_device * dev,
|
|||
if (descr->header_type == IW_HEADER_TYPE_POINT) {
|
||||
/* Check if number of token fits within bounds */
|
||||
if (wrqu->data.length > descr->max_tokens) {
|
||||
netdev_err(dev, "(WE) : Wireless Event too big (%d)\n",
|
||||
wrqu->data.length);
|
||||
netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too big (%d)\n",
|
||||
cmd, wrqu->data.length);
|
||||
return;
|
||||
}
|
||||
if (wrqu->data.length < descr->min_tokens) {
|
||||
netdev_err(dev, "(WE) : Wireless Event too small (%d)\n",
|
||||
wrqu->data.length);
|
||||
netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too small (%d)\n",
|
||||
cmd, wrqu->data.length);
|
||||
return;
|
||||
}
|
||||
/* Calculate extra_len - extra is NULL for restricted events */
|
||||
|
|
|
|||
Loading…
Reference in a new issue