TDLS: Add channel-switch capability flag
Propagate a driver TDLS channel-switch support bit from nl80211 to TDLS code. Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
This commit is contained in:
parent
ca16586afe
commit
4daa572925
6 changed files with 24 additions and 5 deletions
|
@ -2742,7 +2742,8 @@ int wpa_tdls_init(struct wpa_sm *sm)
|
|||
* are assumed to perform everything internally
|
||||
*/
|
||||
if (wpa_sm_tdls_get_capa(sm, &sm->tdls_supported,
|
||||
&sm->tdls_external_setup) < 0) {
|
||||
&sm->tdls_external_setup,
|
||||
&sm->tdls_chan_switch) < 0) {
|
||||
sm->tdls_supported = 1;
|
||||
sm->tdls_external_setup = 0;
|
||||
}
|
||||
|
@ -2751,6 +2752,8 @@ int wpa_tdls_init(struct wpa_sm *sm)
|
|||
"driver", sm->tdls_supported ? "" : " not");
|
||||
wpa_printf(MSG_DEBUG, "TDLS: Driver uses %s link setup",
|
||||
sm->tdls_external_setup ? "external" : "internal");
|
||||
wpa_printf(MSG_DEBUG, "TDLS: Driver %s TDLS channel switching",
|
||||
sm->tdls_chan_switch ? "supports" : "does not support");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue