mac80211: don't queue monitor work for HW_CONNECTION_MONITOR
Devices that monitor the connection in the hw don't need the monitor work in the driver. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c393862faa
commit
494f1fe559
|
@ -2974,11 +2974,15 @@ static void ieee80211_sta_monitor_work(struct work_struct *work)
|
||||||
|
|
||||||
static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata)
|
static void ieee80211_restart_sta_timer(struct ieee80211_sub_if_data *sdata)
|
||||||
{
|
{
|
||||||
|
u32 flags;
|
||||||
|
|
||||||
if (sdata->vif.type == NL80211_IFTYPE_STATION) {
|
if (sdata->vif.type == NL80211_IFTYPE_STATION) {
|
||||||
sdata->u.mgd.flags &= ~(IEEE80211_STA_BEACON_POLL |
|
sdata->u.mgd.flags &= ~(IEEE80211_STA_BEACON_POLL |
|
||||||
IEEE80211_STA_CONNECTION_POLL);
|
IEEE80211_STA_CONNECTION_POLL);
|
||||||
|
|
||||||
/* let's probe the connection once */
|
/* let's probe the connection once */
|
||||||
|
flags = sdata->local->hw.flags;
|
||||||
|
if (!(flags & IEEE80211_HW_CONNECTION_MONITOR))
|
||||||
ieee80211_queue_work(&sdata->local->hw,
|
ieee80211_queue_work(&sdata->local->hw,
|
||||||
&sdata->u.mgd.monitor_work);
|
&sdata->u.mgd.monitor_work);
|
||||||
/* and do all the other regular work too */
|
/* and do all the other regular work too */
|
||||||
|
|
Reference in New Issue