Skip to content

Commit

Permalink
Add note about configuring WPA2 access points
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Mar 16, 2022
1 parent 37de6e5 commit fea849f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,24 @@ involved. Here is a basic configuration:
}
```

If you want to use WPA2 on your access point, make the networks map look like
this:

```elixir
%{
mode: :ap,
key_mgmt: :wpa_psk,
proto: "RSN",
pairwise: "CCMP",
group: "CCMP",
ssid: "test ssid",
psk: "secret123"
}
```

The `proto: "RSN"` entry is important since the `wpa_supplicant` default is
`WPA` and not `WPA2`.

See the
[vintage_net_wizard](https://github.com/nerves-networking/vintage_net_wizard)
for an example of a project that uses AP mode and a web server for WiFi
Expand Down

0 comments on commit fea849f

Please sign in to comment.