Skip to content

Releases

New release 0.3.0

Choose a tag to compare

@cathay4t cathay4t released this 01 Oct 09:30
v0.3.0
8a1588a

Breaking changes

  • WifiClient now manages all wifi-phy interfaces in one object; use
    WifiClient::init() and the WifiRunResult-returning
    run_multi() when managing multiple interfaces. (b7c4c6e, 85172f9)

New features

  • Add per-network prefered flag: a preferred SSID found in scan
    results wins over stronger BSSes of other configured SSIDs; it is
    ignored when its signal is below
    DEFAULT_SWITCH_SSID_LOWER_THAN_DBM (-80 dBm). (10d863e)
  • One WifiClient per network namespace: all interfaces share one
    nl80211 socket and one event dispatcher that routes multicast events
    by IFINDEX. (b7c4c6e)
  • Add NetworkConfig::hints so API users can pass last-known BSS
    information for a scan-free connect, or partial hints (frequencies)
    for a best-effort quick scan with the normal scan flow as fallback.
    WifiClient::export_hints() exports the current BSS as hints for
    the next run. (344dd6a)
  • NetworkConfigHints and SecurityType now implement serde
    Serialize/Deserialize so hints can be persisted to a file and
    loaded back after reboot. (51eedf0)
  • A scan that sees a configured SSID only with an unsupported security
    mode (e.g. an AP whose group cipher is TKIP, like many WPA/WPA2
    hybrid consumer routers) now reports ErrorKind::NoSupport with a
    user-facing reason such as TKIP WPA2 is not supported instead of
    the generic ErrorKind::SsidNotFound. WifiError also carries the
    SSID the error is about, so an API user (e.g. nipart's wifi plugin)
    can fail the matching connection wait with the real reason. (5c38027)

Bug fixes

  • WifiClient::update_networks() no longer tears down an in-flight
    scan or authentication when the re-applied list carries the same
    networks in a different order, or when the current target is still
    configured unchanged. A boot-time hand-off re-sending the saved
    profiles (e.g. nipart's wifi plugin) can no longer kill a 4-way
    handshake mid-flight and cost the retry backoff. (91b389d, bf3e35c)
  • The first connection-attempt failure after client start retries
    after 2 seconds instead of the full 10-second scan-retry backoff,
    covering the driver/firmware initialization race of an OS boot.
    (bf3e35c)
  • Report wrong-password authentication failures as
    ErrorKind::WrongPassword on WifiClient::run() /
    WifiRunResult::error instead of only entering the generic
    FailedAuthentication retry state. (c17cb6f)
  • SET_REKEY_OFFLOAD now carries the negotiated AKM instead of always
    reporting SAE. (ab9fa12)
  • Refresh driver rekey offload after userspace group rekeys and after
    FT roam, and apply the replay counter reported by the driver after a
    firmware GTK rekey. (ab9fa12)
  • Recover a lost established connection like wpa_supplicant: an
    AP-initiated disconnect with a recoverable reason (4/6/7) retries
    the same BSS directly and falls back to a scan when that fails;
    every other disconnect scans immediately for an alternative BSS or
    configured SSID. (6318a57, b080442)
  • Reject a PMKID-based association like wpa_supplicant's
    sme_event_deauth(): an AP deauthenticating with reason 9
    (STA_REQ_ASSOC_WITHOUT_AUTH) is treated as the cached-PMKSA
    rejection, dropping the entry and retrying with full authentication
    instead of waiting out the attempt timeout and repeating the stale
    PMKID. (0434e4c)
  • Drop a stale PMKSA and fall back to full authentication when a
    PMKID-based association fails or times out, instead of repeating the
    same cached-PMKID attempt and blacklisting the healthy BSS. (0434e4c)
  • Ignore the kernel's trailing CONNECT failure for an association
    response a PMKSA fallback already handled, and log locally generated
    (driver/firmware) teardowns distinctly from AP-initiated
    disconnects. (0434e4c)

New release 0.2.0

Choose a tag to compare

@cathay4t cathay4t released this 16 Aug 11:08
v0.2.0
6351f11

Breaking changes

  • WifiConfig now holds a network list; use add_network() instead
    of the removed ssid/password fields. (05b4466)
  • Signal-triggered roaming is enabled per network by default; the
    global roam_threshold_dbm config is replaced by per-network
    roaming and roaming_threshold. (40fba35)

New features

  • Support multiple WiFi networks in one scan schedule. (05b4466)
  • Add hardware scheduled scan (PNO) with host scan backoff fallback.
    (6d423c8)
  • Add userspace PMKSA cache for fast reconnection. (60e7404)
  • Add IEEE 802.11r/802.11v roaming support. (afb4278)
  • Add per-SSID signal-triggered roaming, enabled by default. (40fba35)
  • Add CQM-triggered roam scans, background scan and cross-SSID
    critical switch. (d7f5ea7)
  • Quick-scan known ESS frequencies before a full-scan fallback.
    (a4c4242)
  • Request 802.11k Neighbor Reports before quick roam scans. (a955907)
  • Add SAE anti-clogging token handling, HnP fallback and commit
    retransmission. (5aae947)
  • Add WoWLAN suspend support with opt-in wowlan config. (f63bb6e)
  • Run one WifiClient per configured interface. (504ba1a)
  • Skip unsupported-AKM BSSes and classify disconnect reasons for
    retry backoff. (504ba1a)
  • Add systemd unit, /etc/shuli layout and man page. (7ad6e3a)
  • Add WPA2-PSK-SHA256 (AKM 6) support. (72d0b46)
  • Add EAP transport (RFC 3748) and peer state machine. (545edd2)
  • Add EAP-TLS via rustls (RFC 5216 / RFC 9190). (630b375)
  • Add WPA2-Enterprise (802.1X/EAP-TLS) support. (144d813)
  • Add WPA3-Enterprise baseline (AKM 5, mandatory PMF). (9acb48f)
  • Add wired 802.1X (EAPOL over Ethernet). (16bc427)
  • Add SAE password identifiers. (8bf6f70)
  • Negotiate the BIP group management cipher in the RSNE. (ec6e8cf)
  • Parse and log the Transition Disable KDE. (f6a4622)
  • Add Operating Channel Validation (OCV) support. (044ab39)
  • Add Extended Key ID support. (76a239c)
  • Add SAE-EXT-KEY (AKM 24/25) support. (b2c3aea)
  • Fail cleanly when the AP requires SAE-PK (status 127). (da9df6d)
  • Support connection to hidden SSIDs. (eaaa41b)
  • Expose WifiClient::current_bssid(). (4d6e7c4)

Bug fixes

  • Install IGTK/BIGTK and validate Message 3 IEs for PMF. (959ce70)
  • Wait for the scan-completion event instead of a fixed sleep.
    (eea56d1)
  • Restore the connected state when a roam scan stays. (b4a4db7)
  • Do not switch to a weaker BSS in a roam scan. (ca04d6d)
  • Cancel a pending roam scan when the signal recovers. (473ae27)
  • Reject security downgrades in cross-SSID critical switch. (ed1011b)
  • Fix FT-SAE roam on HnP APs and rejected reassociation handling.
    (64e729a)
  • Clear stale FT context on a new auth attempt. (28ac610)
  • Retry SAE auth on transient 802.11 rejection statuses. (29b8820)
  • Report scan signal in dBm instead of mBm. (75f654f)
  • Check AP scan capabilities before SAE H2E, OCV and Extended Key ID.
    (2cd79a6)
  • Make background scan a low-frequency fallback. (604b67f)
  • Only return from run() when the state changes. (d801098)
  • Suppress transient roam scan states from run(). (2f12ff9)

Init release 0.1.0

Choose a tag to compare

@cathay4t cathay4t released this 05 Aug 06:51
v0.1.0
5c196ae

Breaking changes

  • N/A

New Features

  • Initial release.

Bug Fixes

  • N/a