Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: drivers/net/wireless/libertas_tf/cmd.c drivers/net/wireless/libertas_tf/main.c
This commit is contained in:
@@ -97,9 +97,6 @@ static int ieee80211_change_iface(struct wiphy *wiphy,
|
||||
params->mesh_id_len,
|
||||
params->mesh_id);
|
||||
|
||||
if (sdata->vif.type != NL80211_IFTYPE_MONITOR || !flags)
|
||||
return 0;
|
||||
|
||||
if (type == NL80211_IFTYPE_AP_VLAN &&
|
||||
params && params->use_4addr == 0)
|
||||
rcu_assign_pointer(sdata->u.vlan.sta, NULL);
|
||||
@@ -107,7 +104,9 @@ static int ieee80211_change_iface(struct wiphy *wiphy,
|
||||
params && params->use_4addr >= 0)
|
||||
sdata->u.mgd.use_4addr = params->use_4addr;
|
||||
|
||||
sdata->u.mntr_flags = *flags;
|
||||
if (sdata->vif.type == NL80211_IFTYPE_MONITOR && flags)
|
||||
sdata->u.mntr_flags = *flags;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1115,6 +1114,13 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
|
||||
changed |= BSS_CHANGED_BASIC_RATES;
|
||||
}
|
||||
|
||||
if (params->ap_isolate >= 0) {
|
||||
if (params->ap_isolate)
|
||||
sdata->flags |= IEEE80211_SDATA_DONT_BRIDGE_PACKETS;
|
||||
else
|
||||
sdata->flags &= ~IEEE80211_SDATA_DONT_BRIDGE_PACKETS;
|
||||
}
|
||||
|
||||
ieee80211_bss_info_change_notify(sdata, changed);
|
||||
|
||||
return 0;
|
||||
@@ -1399,11 +1405,11 @@ static int ieee80211_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (enabled == sdata->u.mgd.powersave &&
|
||||
timeout == conf->dynamic_ps_timeout)
|
||||
timeout == conf->dynamic_ps_forced_timeout)
|
||||
return 0;
|
||||
|
||||
sdata->u.mgd.powersave = enabled;
|
||||
conf->dynamic_ps_timeout = timeout;
|
||||
conf->dynamic_ps_forced_timeout = timeout;
|
||||
|
||||
/* no change, but if automatic follow powersave */
|
||||
mutex_lock(&sdata->u.mgd.mtx);
|
||||
|
Reference in New Issue
Block a user