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)
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

Simple merge