Browse Source

TDLS: Add support for TDLS frame RX with bridge interfaces

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Subrat Dash 13 years ago
parent
commit
0e28de0d2b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/rsn_supp/tdls.c

+ 3 - 1
src/rsn_supp/tdls.c

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