|
@@ -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) {
|