Commit 612307c6 authored by David S. Miller's avatar David S. Miller

Merge tag 'mac80211-for-davem-2017-03-31' of...

Merge tag 'mac80211-for-davem-2017-03-31' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211

Johannes Berg says:

====================
Two fixes:
 * don't block netdev queues (indefinitely!) if mac80211
   manages traffic queueing itself
 * check wiphy registration before checking for ops
   on resume, to avoid crash
====================
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parents 0989bd03 7d65f829
...@@ -718,7 +718,8 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up) ...@@ -718,7 +718,8 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
ieee80211_recalc_ps(local); ieee80211_recalc_ps(local);
if (sdata->vif.type == NL80211_IFTYPE_MONITOR || if (sdata->vif.type == NL80211_IFTYPE_MONITOR ||
sdata->vif.type == NL80211_IFTYPE_AP_VLAN) { sdata->vif.type == NL80211_IFTYPE_AP_VLAN ||
local->ops->wake_tx_queue) {
/* XXX: for AP_VLAN, actually track AP queues */ /* XXX: for AP_VLAN, actually track AP queues */
netif_tx_start_all_queues(dev); netif_tx_start_all_queues(dev);
} else if (dev) { } else if (dev) {
......
...@@ -132,12 +132,10 @@ static int wiphy_resume(struct device *dev) ...@@ -132,12 +132,10 @@ static int wiphy_resume(struct device *dev)
/* Age scan results with time spent in suspend */ /* Age scan results with time spent in suspend */
cfg80211_bss_age(rdev, get_seconds() - rdev->suspend_at); cfg80211_bss_age(rdev, get_seconds() - rdev->suspend_at);
if (rdev->ops->resume) { rtnl_lock();
rtnl_lock(); if (rdev->wiphy.registered && rdev->ops->resume)
if (rdev->wiphy.registered) ret = rdev_resume(rdev);
ret = rdev_resume(rdev); rtnl_unlock();
rtnl_unlock();
}
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment