On Tue, 2019-10-08 at 11:33 -0500, Denis Kenzior wrote:
nl80211 requires NL80211_CMD_ABORT_SCAN to have a wdev or netdev attribute present and checks that if netdev is provided it is UP. However, mac80211 does not check that an ongoing scan actually belongs to the netdev/wdev provided by the user. In other words, it is possible for an application to cancel scans on an interface it doesn't manage.
I think you should do this in cfg80211.
johannes