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-2.6
This commit is contained in:
commit
a261af927d
24 changed files with 104 additions and 132 deletions
|
|
@ -140,7 +140,6 @@ static void ieee80211_key_enable_hw_accel(struct ieee80211_key *key)
|
|||
struct ieee80211_sub_if_data,
|
||||
u.ap);
|
||||
|
||||
key->conf.ap_addr = sdata->dev->dev_addr;
|
||||
ret = drv_set_key(key->local, SET_KEY, sdata, sta, &key->conf);
|
||||
|
||||
if (!ret) {
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ enum plink_state {
|
|||
/**
|
||||
* struct sta_ampdu_mlme - STA aggregation information.
|
||||
*
|
||||
* @tid_state_rx: TID's state in Rx session state machine.
|
||||
* @tid_active_rx: TID's state in Rx session state machine.
|
||||
* @tid_rx: aggregation info for Rx per TID
|
||||
* @tid_state_tx: TID's state in Tx session state machine.
|
||||
* @tid_tx: aggregation info for Tx per TID
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ int cfg80211_set_freq(struct cfg80211_registered_device *rdev,
|
|||
struct ieee80211_channel *chan;
|
||||
int result;
|
||||
|
||||
if (wdev->iftype == NL80211_IFTYPE_MONITOR)
|
||||
if (wdev && wdev->iftype == NL80211_IFTYPE_MONITOR)
|
||||
wdev = NULL;
|
||||
|
||||
if (wdev) {
|
||||
|
|
|
|||
|
|
@ -4443,9 +4443,10 @@ static int nl80211_remain_on_channel(struct sk_buff *skb,
|
|||
if (channel_type != NL80211_CHAN_NO_HT &&
|
||||
channel_type != NL80211_CHAN_HT20 &&
|
||||
channel_type != NL80211_CHAN_HT40PLUS &&
|
||||
channel_type != NL80211_CHAN_HT40MINUS)
|
||||
channel_type != NL80211_CHAN_HT40MINUS) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
freq = nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ]);
|
||||
|
|
@ -4717,9 +4718,10 @@ static int nl80211_action(struct sk_buff *skb, struct genl_info *info)
|
|||
if (channel_type != NL80211_CHAN_NO_HT &&
|
||||
channel_type != NL80211_CHAN_HT20 &&
|
||||
channel_type != NL80211_CHAN_HT40PLUS &&
|
||||
channel_type != NL80211_CHAN_HT40MINUS)
|
||||
channel_type != NL80211_CHAN_HT40MINUS) {
|
||||
err = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
freq = nla_get_u32(info->attrs[NL80211_ATTR_WIPHY_FREQ]);
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ cfg80211_inform_bss(struct wiphy *wiphy,
|
|||
|
||||
privsz = wiphy->bss_priv_size;
|
||||
|
||||
if (WARN_ON(wiphy->signal_type == NL80211_BSS_SIGNAL_UNSPEC &&
|
||||
if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC &&
|
||||
(signal < 0 || signal > 100)))
|
||||
return NULL;
|
||||
|
||||
|
|
@ -571,7 +571,7 @@ cfg80211_inform_bss_frame(struct wiphy *wiphy,
|
|||
u.probe_resp.variable);
|
||||
size_t privsz = wiphy->bss_priv_size;
|
||||
|
||||
if (WARN_ON(wiphy->signal_type == NL80211_BSS_SIGNAL_UNSPEC &&
|
||||
if (WARN_ON(wiphy->signal_type == CFG80211_SIGNAL_TYPE_UNSPEC &&
|
||||
(signal < 0 || signal > 100)))
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue