mdlayher / wifi

Package wifi provides access to IEEE 802.11 WiFi device actions and statistics. MIT Licensed.
MIT License
271 stars 56 forks source link

Check if handshake offloading is supported #82

Open george-hopkins opened 2 months ago

george-hopkins commented 2 months ago

ConnectWPAPSK() only works if the driver supports handshake offloading (e.g. brmfmac on a Raspberry Pi with built-in WiFi). By checking support for this feature before attempting to connect, we can return a more descriptive error instead of EINVAL.

Closes: #54