mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-17 17:31:27 +00:00
Wifi-3021. Avoid creating VLAN interface on LAN side
Under Bridged mode of configuration, when creating VLAN interface, we create VLAN for both WAN and LAN side, whereas LAN side VLAN is not requried. Signed-off-by: ravi vaishnav <ravi.vaishnav@netexperience.com>
This commit is contained in:
parent
29290b5b85
commit
17f86797d7
@ -367,10 +367,24 @@ static void callback_Wifi_Inet_Config(ovsdb_update_monitor_t *mon,
|
|||||||
{
|
{
|
||||||
switch (mon->mon_type) {
|
switch (mon->mon_type) {
|
||||||
case OVSDB_UPDATE_NEW:
|
case OVSDB_UPDATE_NEW:
|
||||||
|
if (iconf->parent_ifname_exists && iconf->vlan_id > 2) {
|
||||||
|
if(!strncmp(iconf->parent_ifname, "lan", strlen("lan"))) {
|
||||||
|
/* Skip adding VLAN interface for lan */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wifi_inet_conf_add(iconf);
|
wifi_inet_conf_add(iconf);
|
||||||
netifd_add_inet_conf(iconf);
|
netifd_add_inet_conf(iconf);
|
||||||
break;
|
break;
|
||||||
case OVSDB_UPDATE_MODIFY:
|
case OVSDB_UPDATE_MODIFY:
|
||||||
|
if (iconf->parent_ifname_exists && iconf->vlan_id > 2) {
|
||||||
|
if(!strncmp(iconf->parent_ifname, "lan", strlen("lan"))) {
|
||||||
|
/* Skip adding VLAN interface for lan */
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wifi_inet_conf_add(iconf);
|
wifi_inet_conf_add(iconf);
|
||||||
netifd_modify_inet_conf(iconf);
|
netifd_modify_inet_conf(iconf);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user