hostapd: Split up channel checking into helpers
This splits up the channel checking upon initialization into a few helpers. This should make this a bit easier to follow. This also paves the way for some initial ACS entry code. Signed-hostap: Michal Kazior <michal.kazior@tieto.com>
This commit is contained in:
parent
ba873bdf86
commit
245e026ec8
2 changed files with 88 additions and 73 deletions
|
@ -47,6 +47,11 @@ struct hapd_interfaces {
|
|||
struct hostapd_dynamic_iface **dynamic_iface;
|
||||
};
|
||||
|
||||
enum hostapd_chan_status {
|
||||
HOSTAPD_CHAN_VALID = 0, /* channel is ready */
|
||||
HOSTAPD_CHAN_INVALID = 1, /* no usable channel found */
|
||||
HOSTAPD_CHAN_ACS = 2, /* ACS work being performed */
|
||||
};
|
||||
|
||||
struct hostapd_probereq_cb {
|
||||
int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue