]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Missing sysctl flags aren't fatal
authorBrian Norris <briannorris@chromium.org>
Tue, 16 Jul 2019 23:43:21 +0000 (16:43 -0700)
committerJouni Malinen <j@w1.fi>
Tue, 30 Jul 2019 17:01:13 +0000 (20:01 +0300)
commit3b726df827c0b0bdf126b0c6c8d1fdafd451377d
tree8bbb358f11d44c36ddbc6477c67445df523f6850
parent96e60047c9cce40ce66d0431a70244fbe8de9493
nl80211: Missing sysctl flags aren't fatal

The relevant flags were only added in Linux 4.6, so we shouldn't
complain because they're missing. Also, they're always missing if a
device is being removed (e.g., 'iw dev wlan0 del', or if the device is
in the process of resetting itself). So kill those 2 birds with 1 stone:
if we can't find the file, just silently skip it.

Also, we probably should *actually* propagate the error if we had a
write failure.

Signed-off-by: Brian Norris <briannorris@chromium.org>
src/drivers/driver_nl80211.c