mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-23 06:02:37 +01:00
ap: Make ap_update_beacon public
Let users call ap_update_beacon when a value has changed which should be reflected in the beacon IEs.
This commit is contained in:
parent
bc3d285c5e
commit
71ba94121d
5
src/ap.c
5
src/ap.c
@ -641,7 +641,7 @@ static void ap_set_beacon_cb(struct l_genl_msg *msg, void *user_data)
|
||||
l_error("SET_BEACON failed: %s (%i)", strerror(-error), -error);
|
||||
}
|
||||
|
||||
static void ap_update_beacon(struct ap_state *ap)
|
||||
void ap_update_beacon(struct ap_state *ap)
|
||||
{
|
||||
struct l_genl_msg *cmd;
|
||||
uint8_t head[256], tail[256];
|
||||
@ -651,6 +651,9 @@ static void ap_update_beacon(struct ap_state *ap)
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
||||
};
|
||||
|
||||
if (L_WARN_ON(!ap->started))
|
||||
return;
|
||||
|
||||
head_len = ap_build_beacon_pr_head(ap, MPDU_MANAGEMENT_SUBTYPE_BEACON,
|
||||
bcast_addr, head, sizeof(head));
|
||||
tail_len = ap_build_beacon_pr_tail(ap, false, tail);
|
||||
|
Loading…
Reference in New Issue
Block a user