]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Break out the current 802.11 software scan methods into an indirect table.
authorAdrian Chadd <adrian@FreeBSD.org>
Mon, 8 Jun 2015 02:35:43 +0000 (02:35 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Mon, 8 Jun 2015 02:35:43 +0000 (02:35 +0000)
commitf7f155fa58895cc1fd83635a6a37d548082de010
treeb9f74d73cb6ced8d6cda1f76fb08f3e1f6d6d811
parent3b7b66dd8b38e90b7a556678389a9060907f49d7
Break out the current 802.11 software scan methods into an indirect table.

In order for drivers to provide an alternate set of scan methods,
these have to finally use an indirection table and all of the calls
in ieee80211_scan.c need to use said table.

For all existing drivers - this is basically a glorified, KBI-breaking
functional no-op.

This is also not the final form - too much functionality is currently
hiding in ieee80211_scan_sw.c that should be in ieee80211_scan.c.
That'll be the target of some follow-up commits.

Note:

* You have to recompile your kernel/drivers after this - the net80211 KBI has
  changed.
* I'm not yet planning on bumping any versioning - I have a few more things
  to shuffle around.

Tested:

* urtwn(4) - STA mode
* Intel 7260 in local repo - overriding the methods and table at
  attach time has the desired effect (ie, all the methods are called,
  but nothing is ever performed.)
sys/net80211/ieee80211_scan.c
sys/net80211/ieee80211_scan.h
sys/net80211/ieee80211_scan_sw.c
sys/net80211/ieee80211_scan_sw.h
sys/net80211/ieee80211_var.h