wlan - Import initial full-offload scan support from FreeBSD.
authorImre Vadász <imre@vdsz.com>
Mon, 7 Nov 2016 20:45:45 +0000 (21:45 +0100)
committerImre Vadász <imre@vdsz.com>
Tue, 8 Nov 2016 22:08:51 +0000 (23:08 +0100)
commit84bcb7f762d9ace5a7ba486a9c3cb3735cd3d8bb
tree9c7bd12e615fe2cbabb725a7f92693ea3fbe517f
parent96dc2e6f42981ed21a281f193acd91138c4206d1
wlan - Import initial full-offload scan support from FreeBSD.

This is a very simple addition to the net80211 scan support.

It doesn't implement a replacement scan interface - it just disables
the pieces that we should disable to make this lifecycle a bit
more managable.

There's more work to come before full scan offload support is available
but it should be good enough for driver work.

* add a flag to say "full offload"
* don't do probe requests when scanning full-offload - firmware can do that
* don't do powersave transitions and buffering - firmware can do that
* don't abort a background scan upon reception of a single packet.
  Full offload drivers don't need this behaviour - they do it in firmware.

Taken-From: FreeBSD (svn r307602, r308007 and r308008)
sys/netproto/802_11/ieee80211_var.h
sys/netproto/802_11/wlan/ieee80211_scan.c
sys/netproto/802_11/wlan/ieee80211_scan_sw.c