//! Pinnacle's Wi-Fi: the networks nearby, and joining one. A pure state //! machine over AT commands, the set Espressif's ESP-AT firmware speaks //! over a UART (`AT+CWLAP` lists the access points, `AT+CWJAP` joins one, //! `AT+CWQAP` leaves it): bytes from the radio go in through //! [`Wifi::receive`], bytes for it come out of [`Wifi::transmit`], and //! what happened comes out of [`Wifi::event`]. Time is a parameter. The //! same code runs in the `wifi` service against the device's radio and in //! host tests against [`sim`], a simulated radio and the access points //! around it. //! //! The radio does the 802.11 association and WPA's handshake itself (a //! "full MAC" radio): the driver gives it a network's name and password //! and is told whether it got on. The password is not kept on the radio //! (`AT+SYSSTORE=0`): the service keeps the networks joined, in the data //! vault. Carrying the network's packets is not here yet. //! //! [`wpa`] is WPA2-Personal's handshake for a radio that leaves it to the //! host (Intel's), as a state machine of its own. //! //! [`iwl`] is Intel's Wi-Fi as data: its firmware files, which a chip //! needs, and the structures its boot reads, for the kernel's driver. #![no_std] extern crate alloc; pub mod host; pub mod iwl; pub mod protocol; pub mod sim; pub mod wpa; pub use host::{Event, Failure, Network, Security, Wifi}; #[cfg(test)] mod tests;