原始 MTK 設計 NoForwarding(IsolateInterStaTraffic) 是用來做同一個 SSID 內的 client 不能互相溝通,NoForwardingBTNBSSID(IsolateInterStaTrafficBTNBSSID) 是用來做不同 SSID 的 client 不能互相溝通。

修改 rt2860v2/ap/ap_data.c BOOLEAN APFowardWirelessStaToWirelessSta( ...... ...... if (pEntry && (pEntry->Sst == SST_ASSOC) && IS_ENTRY_CLIENT(pEntry)) { bDirectForward = TRUE; bAnnounce = FALSE; #if 0 if (FromWhichBSSID == pEntry->apidx) {/* STAs in same SSID */ if ((pAd->ApCfg.MBSSID[pEntry->apidx].IsolateInterStaTraffic == 1)) { bDirectForward = FALSE; bAnnounce = FALSE; } } else {/* STAs in different SSID */ if (pAd->ApCfg.IsolateInterStaTrafficBTNBSSID == 1 || ((FromWhichBSSID < MAX_MBSSID_NUM(pAd)) && (FromWhichBSSID < HW_BEACON_MAX_NUM) && (pAd->ApCfg.MBSSID[pEntry->apidx].VLAN_VID != pAd->ApCfg.MBSSID[FromWhichBSSID].VLAN_VID))) /* destination VLAN ID != source VLAN ID */ { bDirectForward = FALSE; bAnnounce = FALSE; } } #else if ((pAd->ApCfg.MBSSID[FromWhichBSSID].IsolateInterStaTraffic == 1) || (pAd->ApCfg.MBSSID[pEntry->apidx].IsolateInterStaTraffic == 1)) { bDirectForward = FALSE; bAnnounce = FALSE; } #endif } ...... ......
創作者介紹

邱小新の工作筆記

台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()