eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 6b71a71e197cf9ebac9a6b1680d9606b2303c3a9
parent 219e18323f4ae230ed29473a658343f28bbc53c2
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Wed, 13 Oct 2021 17:01:33 -0500

ap: Use l_dhcp_lease_get_prefix_length

Diffstat:
Msrc/ap.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/ap.c b/src/ap.c @@ -1467,8 +1467,6 @@ static uint32_t ap_assoc_resp(struct ap_state *ap, struct sta_state *sta, if (ip_req_info->ipv4 && sta && ap_sta_get_dhcp4_lease(sta)) { L_AUTO_FREE_VAR(char *, lease_addr_str) = l_dhcp_lease_get_address(sta->ip_alloc_lease); - L_AUTO_FREE_VAR(char *, lease_netmask_str) = - l_dhcp_lease_get_netmask(sta->ip_alloc_lease); uint32_t lease_lifetime = l_dhcp_lease_get_lifetime(sta->ip_alloc_lease); L_AUTO_FREE_VAR(char *, lease_gateway_str) = @@ -1478,8 +1476,8 @@ static uint32_t ap_assoc_resp(struct ap_state *ap, struct sta_state *sta, ip_resp_info.ipv4_addr = IP4_FROM_STR(lease_addr_str); ip_resp_info.ipv4_prefix_len = - __builtin_popcount(IP4_FROM_STR( - lease_netmask_str)); + l_dhcp_lease_get_prefix_length( + sta->ip_alloc_lease); if (lease_lifetime != 0xffffffff) ip_resp_info.ipv4_lifetime = lease_lifetime;