[RESEND PATCH usteer v3 7/9] ubus: Corrected transition request interface for disassociation timer
Nils Hendrik Rottgardt
n.rottgardt at gmail.com
Tue Dec 3 12:55:30 PST 2024
- ubus: uint32_t has to be used instead of uint8_t
Signed-off-by: Nils Hendrik Rottgardt <n.rottgardt at gmail.com>
---
ubus.c | 8 ++++----
usteer.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ubus.c b/ubus.c
index bcd0ef1..c72f8f7 100644
--- a/ubus.c
+++ b/ubus.c
@@ -673,7 +673,7 @@ usteer_ubus_disassoc_add_neighbors(struct sta_info *si)
int usteer_ubus_bss_transition_request(struct sta_info *si,
uint8_t dialog_token,
bool disassoc_imminent,
- uint8_t disassoc_timer,
+ uint32_t disassoc_timer,
bool abridged,
uint8_t validity_period,
struct usteer_node *target_node)
@@ -697,7 +697,7 @@ int usteer_ubus_bss_transition_request(struct sta_info *si,
MSG(VERBOSE, "ROAMING requested for sta=" MAC_ADDR_FMT " without target\n", MAC_ADDR_DATA(si->sta->addr));
usteer_ubus_disassoc_add_neighbors(si);
} else {
- MSG(VERBOSE, "ROAMING requested for sta=" MAC_ADDR_FMT " to %s with disassociation timer %i\n", MAC_ADDR_DATA(si->sta->addr), usteer_node_name(target_node), disassoc_timer);
+ MSG(VERBOSE, "ROAMING requested for sta=" MAC_ADDR_FMT " to %s with disassociation timer %u\n", MAC_ADDR_DATA(si->sta->addr), usteer_node_name(target_node), disassoc_timer);
usteer_ubus_disassoc_add_neighbor(si, target_node);
}
return ubus_invoke(ubus_ctx, ln->obj_id, "bss_transition_request", b.head, NULL, 0, 100);
@@ -706,7 +706,7 @@ int usteer_ubus_bss_transition_request(struct sta_info *si,
int usteer_ubus_band_steering_request(struct sta_info *si,
uint8_t dialog_token,
bool disassoc_imminent,
- uint8_t disassoc_timer,
+ uint32_t disassoc_timer,
bool abridged,
uint8_t validity_period)
{
@@ -735,7 +735,7 @@ int usteer_ubus_band_steering_request(struct sta_info *si,
}
blobmsg_close_array(&b, c);
if (sizeof(si->node) > 0) {
- MSG(VERBOSE, "BAND STEERING requested for sta=" MAC_ADDR_FMT " with disassociation timer %i\n", MAC_ADDR_DATA(si->sta->addr), disassoc_timer);
+ MSG(VERBOSE, "BAND STEERING requested for sta=" MAC_ADDR_FMT " with disassociation timer %u\n", MAC_ADDR_DATA(si->sta->addr), disassoc_timer);
return ubus_invoke(ubus_ctx, ln->obj_id, "bss_transition_request", b.head, NULL, 0, 100);
} else
MSG(VERBOSE, "BAND STEERING no targets found for sta=" MAC_ADDR_FMT "\n", MAC_ADDR_DATA(si->sta->addr));
diff --git a/usteer.h b/usteer.h
index c9391bb..15e3911 100644
--- a/usteer.h
+++ b/usteer.h
@@ -347,13 +347,13 @@ int usteer_ubus_trigger_client_scan(struct sta_info *si);
int usteer_ubus_band_steering_request(struct sta_info *si,
uint8_t dialog_token,
bool disassoc_imminent,
- uint8_t disassoc_timer,
+ uint32_t disassoc_timer,
bool abridged,
uint8_t validity_period);
int usteer_ubus_bss_transition_request(struct sta_info *si,
uint8_t dialog_token,
bool disassoc_imminent,
- uint8_t disassoc_timer,
+ uint32_t disassoc_timer,
bool abridged,
uint8_t validity_period,
struct usteer_node *target_node);
--
2.39.5
More information about the openwrt-devel
mailing list