Sorry, I made a mistake. NL80211_SCAN_FLAG_AP seems to do everything I
want. Initially I thought there was something special about the
"NL80211_FEATURE_AP_SCAN" that was also needed, since it is not being
set by the ath9k. Also, the OpenWrt patch does not test for
"NL80211_FEATURE_AP_SCAN", so I thought it was necessary to skip this
check as well. However, I just noticed that this flag is set for ath9k
in mac80211. I have just tested it again with ath9k (iw dev wlan0 scan
ap-force) and it works as expected.
As far as I know, tools like iwinfo do not include this "force" option.
OpenWrt's Luci interface heavily relies on iwinfo. So far this is not an
issue, as the default behavior of mac80211 in OpenWrt currently allows
scanning regardless of "NL80211_FEATURE_AP_SCAN" or
"NL80211_SCAN_FLAG_AP". So if I want to get rid of this downstream patch
I have to rewrite the iwinfo logic and maybe always include
NL80211_SCAN_FLAG_AP as default.
Thank you very much for your time and feedback.
Bests
Nick
On 1/10/23 12:20, Johannes Berg wrote:
On Tue, 2023-01-10 at 12:19 +0100, Johannes Berg wrote:
On Tue, 2023-01-10 at 12:18 +0100, Nick wrote:
Thanks for your feedback. Can you suggest a better way to do this?
Well there already is NL80211_SCAN_FLAG_AP?
Oh sorry you want it independent of the driver.
But why? This was primarily a thing for "does the firmware even support
this".
So really then your driver should set it?
johannes