Skip to content

Commit

Permalink
hostapd: add missing function declaration
Browse files Browse the repository at this point in the history
Signed-off-by: David Bauer <mail@david-bauer.net>
  • Loading branch information
blocktrron committed Dec 27, 2021
1 parent cfa670b commit 5ca7793
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package/network/services/hostapd/src/src/ap/ubus.h
Expand Up @@ -61,6 +61,9 @@ void hostapd_ubus_notify_bss_transition_response(
const u8 *candidate_list, u16 candidate_list_len);
void hostapd_ubus_add(struct hapd_interfaces *interfaces);
void hostapd_ubus_free(struct hapd_interfaces *interfaces);
int hostapd_ubus_notify_bss_transition_query(
struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, u8 reason,
const u8 *candidate_list, u16 candidate_list_len);

#else

Expand Down Expand Up @@ -125,6 +128,13 @@ static inline void hostapd_ubus_add(struct hapd_interfaces *interfaces)
static inline void hostapd_ubus_free(struct hapd_interfaces *interfaces)
{
}

static inline int hostapd_ubus_notify_bss_transition_query(
struct hostapd_data *hapd, const u8 *addr, u8 dialog_token, u8 reason,
const u8 *candidate_list, u16 candidate_list_len)
{
return 0;
}
#endif

#endif

0 comments on commit 5ca7793

Please sign in to comment.