MBO: Track STA cellular data capability from association request
[mech_eap.git] / src / ap / mbo_ap.h
1 /*
2  * MBO related functions and structures
3  * Copyright (c) 2016, Qualcomm Atheros, Inc.
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8
9 #ifndef MBO_AP_H
10 #define MBO_AP_H
11
12 struct hostapd_data;
13 struct sta_info;
14 struct ieee802_11_elems;
15
16 #ifdef CONFIG_MBO
17
18 void mbo_ap_check_sta_assoc(struct hostapd_data *hapd, struct sta_info *sta,
19                             struct ieee802_11_elems *elems);
20 int mbo_ap_get_info(struct sta_info *sta, char *buf, size_t buflen);
21
22 #else /* CONFIG_MBO */
23
24 static inline void mbo_ap_check_sta_assoc(struct hostapd_data *hapd,
25                                           struct sta_info *sta,
26                                           struct ieee802_11_elems *elems)
27 {
28 }
29
30 static inline int mbo_ap_get_info(struct sta_info *sta, char *buf,
31                                   size_t buflen)
32 {
33         return 0;
34 }
35
36 #endif /* CONFIG_MBO */
37
38 #endif /* MBO_AP_H */