eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 1974a67b3037cf6c18179f5f47f4831ed87feaf9
parent 9224575a83e5064d6b53e9cbd32caef7e1ba8b5b
Author: James Prestwood <prestwoj@gmail.com>
Date:   Thu, 24 Feb 2022 09:04:56 -0800

scan: check flush feature before using flag

Diffstat:
Msrc/scan.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/scan.c b/src/scan.c @@ -362,7 +362,8 @@ static struct l_genl_msg *scan_build_cmd(struct scan_context *sc, if (params->freqs) scan_build_attr_scan_frequencies(msg, params->freqs); - if (params->flush && !ignore_flush_flag) + if (params->flush && !ignore_flush_flag && wiphy_has_feature(sc->wiphy, + NL80211_FEATURE_SCAN_FLUSH)) flags |= NL80211_SCAN_FLAG_FLUSH; if (!is_passive && params->randomize_mac_addr_hint &&