mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-11-21 09:27:26 +01: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:
parent
c4d114d804
commit
3760a49650
@ -2750,11 +2750,15 @@ static bool station_try_next_transition(struct station *station,
|
|||||||
enum security security = network_get_security(connected);
|
enum security security = network_get_security(connected);
|
||||||
struct handshake_state *new_hs;
|
struct handshake_state *new_hs;
|
||||||
struct ie_rsn_info cur_rsne, target_rsne;
|
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",
|
iwd_notice(IWD_NOTICE_ROAM_INFO, "bss: "MAC", signal: %d, load: %d/255",
|
||||||
MAC_STR(bss->addr),
|
MAC_STR(bss->addr),
|
||||||
bss->signal_strength / 100,
|
bss->signal_strength / 100,
|
||||||
bss->utilization);
|
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 */
|
/* Reset AP roam flag, at this point the roaming behaves the same */
|
||||||
station->ap_directed_roaming = false;
|
station->ap_directed_roaming = false;
|
||||||
@ -3913,6 +3917,7 @@ int __station_connect_network(struct station *station, struct network *network,
|
|||||||
{
|
{
|
||||||
struct handshake_state *hs;
|
struct handshake_state *hs;
|
||||||
int r;
|
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,
|
* 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->signal_strength / 100,
|
||||||
bss->utilization);
|
bss->utilization);
|
||||||
|
|
||||||
|
if (vendor_quirks)
|
||||||
|
l_debug("vendor quirks for "MAC": %s",
|
||||||
|
MAC_STR(bss->addr), vendor_quirks);
|
||||||
|
|
||||||
station->connected_bss = bss;
|
station->connected_bss = bss;
|
||||||
station->connected_network = network;
|
station->connected_network = network;
|
||||||
station->hs = handshake_state_ref(hs);
|
station->hs = handshake_state_ref(hs);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user