Just a small correction: On Wed, 2017-05-24 at 11:44 -0500, Dan Williams wrote: > > For RSN, they are 1 = PMK, 2 = GMK, 3 = GMK2, 4 seems unused. PTK and GTK, and in theory you could have more than two GTKs but that's not usually done. > Because WEXT is pretty convoluted, I woudn't necessarily try to > translate what eg ks_wlan_set_encode_ext() is doing directly to > cfg80211, but to understand how the firmware interface works and then > just write the cfg80211 code to the firmware interface. > > Basically, you have the following modes: > > a) open, no encryption > b) WEP encryption (4 possible WEP keys, each either 40 or 104 bits) > c) WPA/RSN (PMK and GMK are computed by wpa_supplicant and supplied > to you, just need to send to firmware) Again, PTK/GTK :) > And to answer Johannes, this firmware looks much more fullmac than > softmac; BSS selection seems left up to the firmware. You just send > it a "connect with these parameters" command (HIF_INFRA_SET_REQ) > including channels, SSID, BSSID, mode, etc and it does everything. Yeah. Makes sense then. johannes