TDLS: Add support for TDLS frame RX with bridge interfaces

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Subrat Dash 2012-03-18 20:52:10 -10:00 committed by Jouni Malinen
parent 4c374cde2f
commit 0e28de0d2b
1 changed files with 3 additions and 1 deletions

View File

@ -2202,7 +2202,9 @@ int wpa_tdls_init(struct wpa_sm *sm)
if (sm == NULL)
return -1;
sm->l2_tdls = l2_packet_init(sm->ifname, sm->own_addr,
sm->l2_tdls = l2_packet_init(sm->bridge_ifname ? sm->bridge_ifname :
sm->ifname,
sm->own_addr,
ETH_P_80211_ENCAP, wpa_supplicant_rx_tdls,
sm, 0);
if (sm->l2_tdls == NULL) {