mac80211: Fix ROC duration == 0 handling
authorIlan Peer <ilan.peer@intel.com>
Thu, 19 Dec 2013 11:25:29 +0000 (13:25 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:48:18 +0000 (21:48 +0100)
commit2fae062e503bd087d1ef7aebfd5c6707c6ec5564
tree58794fc6a7490119daedf58a751677c7f1848c67
parent1693d34416a4b07e291578b4b87dc811876046cf
mac80211: Fix ROC duration == 0 handling

In case the given ROC duration is 0, update it to a minimal value before
setting the ieee80211_roc_work parameters, so it also would be valid
for cases where scan is in progress or there are other ROCs queued.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c