3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-09-16 12:27:27 +02:00

station: print vendor quirks (if any) when connecting/roaming

This makes it clear the BSS being selected for a connection/roam has
any quirks associated with its OUI(s) and that IWD may behave
differently based on these.
This commit is contained in:
James Prestwood 2025-08-27 05:55:01 -07:00 committed by Denis Kenzior
parent c4d114d804
commit 3760a49650

View File

@ -2750,11 +2750,15 @@ static bool station_try_next_transition(struct station *station,
enum security security = network_get_security(connected);
struct handshake_state *new_hs;
struct ie_rsn_info cur_rsne, target_rsne;
const char *vendor_quirks = vendor_quirks_to_string(bss->vendor_quirks);
iwd_notice(IWD_NOTICE_ROAM_INFO, "bss: "MAC", signal: %d, load: %d/255",
MAC_STR(bss->addr),
bss->signal_strength / 100,
bss->utilization);
if (vendor_quirks)
l_debug("vendor quirks for "MAC": %s",
MAC_STR(bss->addr), vendor_quirks);
/* Reset AP roam flag, at this point the roaming behaves the same */
station->ap_directed_roaming = false;
@ -3913,6 +3917,7 @@ int __station_connect_network(struct station *station, struct network *network,
{
struct handshake_state *hs;
int r;
const char *vendor_quirks = vendor_quirks_to_string(bss->vendor_quirks);
/*
* If we already have a handshake_state ref this is due to a retry,
@ -3947,6 +3952,10 @@ int __station_connect_network(struct station *station, struct network *network,
bss->signal_strength / 100,
bss->utilization);
if (vendor_quirks)
l_debug("vendor quirks for "MAC": %s",
MAC_STR(bss->addr), vendor_quirks);
station->connected_bss = bss;
station->connected_network = network;
station->hs = handshake_state_ref(hs);