Skip to contentSkip to conversation

cfg80211_ops

DISCUSSION Tobin C. Harding 4 participants 5 messages Jun 22, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

Is some one able to please confirm for me that the following cfg80211_ops callbacks are enough to implement a minimal functioning Wi-Fi driver. Assume that a virtual interface is added during driver initialization.

scan
add_key
get_key
del_key
sat_default_key
connect
disconnect
set_wiphy_params

thanks,
Tobin

#1 lore raw
Quoted 8 lines · Tobin C. Harding

Hi,

Is some one able to please confirm for me that the following cfg80211_ops callbacks are enough to implement a minimal functioning Wi-Fi driver. Assume that a virtual interface is added during driver initialization.

Quoted 8 lines

scan
add_key
get_key
del_key
sat_default_key
connect
disconnect
set_wiphy_params

Hi, is this for STA-only? I guess you also need
mgmt_frame_register
mgmt_tx

and you don't need *_key callbacks in case its fine to operate without encryption.

Quoted 4 lines

thanks,
Tobin

#2 lore raw
Quoted 18 lines · Igor Mitsyanko
Quoted 8 lines · Tobin C. Harding

Hi,

Is some one able to please confirm for me that the following cfg80211_ops callbacks are enough to implement a minimal functioning Wi-Fi driver. Assume that a virtual interface is added during driver initialization.

Quoted 8 lines

scan
add_key
get_key
del_key
sat_default_key
connect
disconnect
set_wiphy_params

Quoted 3 lines

Hi, is this for STA-only? I guess you also need
mgmt_frame_register
mgmt_tx

Thanks for the response Igor. Yes, infrastructure mode only.

Quoted 2 lines

and you don't need *_key callbacks in case its fine to operate without encryption.

Cool, thank you.

Tobin

#3 lore raw
In reply to Igor Mitsyanko
Quoted 10 lines · Igor Mitsyanko
Quoted 9 lines

scan
add_key
get_key
del_key
sat_default_key
connect
disconnect
set_wiphy_params

Quoted 3 lines

Hi, is this for STA-only? I guess you also need
mgmt_frame_register
mgmt_tx

For really basic operation, I don't think you need that, and might even be able to get away withou set_wiphy_params.

Also, set_default_key is, IIRC, not needed in WPA/WPA2 client mode, but may be needed for WEP - not sure off the top of my head.

johannes

#4 lore raw
Quoted 2 lines · Johannes Berg

Also, set_default_key is, IIRC, not needed in WPA/WPA2 client mode, but may be needed for WEP - not sure off the top of my head.

correct (if brcmfmac is).

Gr. AvS