From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH v3 2/3] station: don't allow FT-over-Air without offchannel support
Date: Thu, 29 Aug 2024 04:41:01 -0700 [thread overview]
Message-ID: <20240829114102.56284-2-prestwoj@gmail.com> (raw)
In-Reply-To: <20240829114102.56284-1-prestwoj@gmail.com>
If CMD_REMAIN_ON_CHANNEL isn't supported, don't allow FT-over-Air
---
src/station.c | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/station.c b/src/station.c
index 30a1232a..5f174a70 100644
--- a/src/station.c
+++ b/src/station.c
@@ -2105,7 +2105,8 @@ static void station_early_neighbor_report_cb(struct netdev *netdev, int err,
&station->roam_freqs);
}
-static bool station_can_fast_transition(struct handshake_state *hs,
+static bool station_can_fast_transition(struct station *station,
+ struct handshake_state *hs,
struct scan_bss *bss)
{
uint16_t mdid;
@@ -2133,6 +2134,16 @@ static bool station_can_fast_transition(struct handshake_state *hs,
return false;
}
+ /*
+ * FT-over-Air in its current form relies on CMD_REMAIN_ON_CHANNEL. Some
+ * drivers do not support this so only allow over-DS if this is the case
+ */
+ if (!(hs->mde[4] & 1) &&
+ !wiphy_supports_cmd_offchannel(station->wiphy)) {
+ l_debug("FT-over-Air needs offchannel, using reassociation");
+ return false;
+ }
+
return true;
}
@@ -2596,7 +2607,7 @@ static bool station_try_next_transition(struct station *station,
station->ap_directed_roaming = false;
/* Can we use Fast Transition? */
- if (station_can_fast_transition(hs, bss) && !no_ft)
+ if (station_can_fast_transition(station, hs, bss) && !no_ft)
return station_fast_transition(station, bss);
/* Non-FT transition */
--
2.34.1
next prev parent reply other threads:[~2024-08-29 11:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 11:41 [PATCH v3 1/3] wiphy: add flag for supporting remain on channel James Prestwood
2024-08-29 11:41 ` James Prestwood [this message]
2024-08-29 11:41 ` [PATCH v3 3/3] netdev: fall back to RSSI polling if SET_CQM fails James Prestwood
2024-09-03 15:15 ` Denis Kenzior
2024-09-03 15:11 ` [PATCH v3 1/3] wiphy: add flag for supporting remain on channel Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240829114102.56284-2-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox