]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2c5e8cbec64bc7e695491eccd46a2e7b1c56bfb
tree58794fc6a7490119daedf58a751677c7f1848c67
parentb1033540220079b214979c64ec0a775d7cbba4b6
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