2016-02-22 06:03:28 -05:00
|
|
|
/*
|
|
|
|
* MBO related functions and structures
|
|
|
|
* Copyright (c) 2016, Qualcomm Atheros, Inc.
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MBO_AP_H
|
|
|
|
#define MBO_AP_H
|
|
|
|
|
|
|
|
struct hostapd_data;
|
|
|
|
struct sta_info;
|
|
|
|
struct ieee802_11_elems;
|
|
|
|
|
|
|
|
#ifdef CONFIG_MBO
|
|
|
|
|
|
|
|
void mbo_ap_check_sta_assoc(struct hostapd_data *hapd, struct sta_info *sta,
|
|
|
|
struct ieee802_11_elems *elems);
|
|
|
|
int mbo_ap_get_info(struct sta_info *sta, char *buf, size_t buflen);
|
2016-02-22 06:24:21 -05:00
|
|
|
void mbo_ap_wnm_notification_req(struct hostapd_data *hapd, const u8 *addr,
|
|
|
|
const u8 *buf, size_t len);
|
2016-02-22 06:03:28 -05:00
|
|
|
|
|
|
|
#else /* CONFIG_MBO */
|
|
|
|
|
|
|
|
static inline void mbo_ap_check_sta_assoc(struct hostapd_data *hapd,
|
|
|
|
struct sta_info *sta,
|
|
|
|
struct ieee802_11_elems *elems)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int mbo_ap_get_info(struct sta_info *sta, char *buf,
|
|
|
|
size_t buflen)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2016-02-22 06:24:21 -05:00
|
|
|
static inline void mbo_ap_wnm_notification_req(struct hostapd_data *hapd,
|
|
|
|
const u8 *addr,
|
|
|
|
const u8 *buf, size_t len)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2016-02-22 06:03:28 -05:00
|
|
|
#endif /* CONFIG_MBO */
|
|
|
|
|
|
|
|
#endif /* MBO_AP_H */
|