Skip to content

Commit

Permalink
ConnectWPAPSK needs ATTR_AUTH_TYPE, too (mdlayher#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Mar 30, 2022
1 parent 954ff73 commit a44c70b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (c *client) ConnectWPAPSK(ifi *Interface, ssid, psk string) error {
unix.NL80211_ATTR_PMK,
wpaPassphrase([]byte(ssid), []byte(psk)),
)
ae.Uint32(unix.NL80211_ATTR_AUTH_TYPE, unix.NL80211_AUTHTYPE_OPEN_SYSTEM)
},
)
return err
Expand Down

0 comments on commit a44c70b

Please sign in to comment.