blob: fc6ddf930a5ac7f14f2c077e9e133833934b78c4 [file] [log] [blame]
developer15a43312022-04-12 11:23:23 +08001diff --git a/ovsdb/inet.json b/ovsdb/inet.json
2index af2994e..4adb651 100644
3--- a/ovsdb/inet.json
4+++ b/ovsdb/inet.json
5@@ -19,6 +19,32 @@
6 "if_type": "bridge",
7 "enabled": true
8 }
9+ },
10+ {
11+ "op":"insert",
12+ "table":"Wifi_Inet_Config",
13+ "row": {
14+ "if_name": "bhaul-sta-24",
15+ "ip_assign_scheme": "dhcp",
16+ "mtu": 1600,
17+ "if_type": "vif",
18+ "enabled" : true,
19+ "network" : true,
20+ "NAT": false
21+ }
22+ },
23+ {
24+ "op":"insert",
25+ "table":"Wifi_Inet_Config",
26+ "row": {
27+ "if_name": "bhaul-sta-50",
28+ "ip_assign_scheme": "dhcp",
29+ "mtu": 1600,
30+ "if_type": "vif",
31+ "enabled" : true,
32+ "network" : true,
33+ "NAT": false
34+ }
35 }
36 ]
37
38diff --git a/src/lib/target/src/map.c b/src/lib/target/src/map.c
39index 55af881..fa535f9 100644
40--- a/src/lib/target/src/map.c
41+++ b/src/lib/target/src/map.c
42@@ -20,10 +20,12 @@ typedef struct
43
44 static ifmap_t ifmap[] = {
45 // idx cloud-ifname dev-ifname bridge gre-br vlan description
46- { 1, "wifi2", "wifi2", "brlan0", "wifi2", 0 }, // 2G Backhaul
47- { 1, "wifi3", "wifi3", "brlan0", "wifi3", 0 }, // 5G Backhaul
48- { 2, "wifi0", "wifi0", "brlan0", NULL, 0 }, // 2G User SSID
49- { 2, "wifi1", "wifi1", "brlan0", NULL, 0 }, // 5G User SSID
50+ { 0, "bhaul-sta-24", "bhaul-sta-24", "br-wan", "bhaul-sta-24", 0 }, // 2G Backhaul
51+ { 0, "bhaul-sta-50", "bhaul-sta-50", "br-wan", "bhaul-sta-50", 0 }, // 2G Backhaul
52+ { 1, "wifi2", "wifi2", "br-home", "wifi2", 0 }, // 2G Backhaul
53+ { 1, "wifi3", "wifi3", "br-home", "wifi3", 0 }, // 5G Backhaul
54+ { 2, "wifi0", "wifi0", "br-home", NULL, 0 }, // 2G User SSID
55+ { 2, "wifi1", "wifi1", "br-home", NULL, 0 }, // 5G User SSID
56 { 0, NULL, NULL, NULL, NULL, 0 }
57 };
58
59diff --git a/src/lib/target/src/target.c b/src/lib/target/src/target.c
60index de884b5..59c1b59 100644
61--- a/src/lib/target/src/target.c
62+++ b/src/lib/target/src/target.c
63@@ -5,3 +5,23 @@ const char* target_tls_privkey_filename(void)
64 {
65 return "/usr/plume/etc/certs/client_dec.key";
66 }
67+
68+bool target_device_connectivity_check(const char *ifname,
69+ target_connectivity_check_t *cstate,
70+ target_connectivity_check_option_t opts)
71+{
72+ cstate->ntp_state = true;
73+ cstate->link_state = true;
74+ cstate->router_state = true;
75+ cstate->internet_state = true;
76+ return true;
77+}
78+
79+int target_device_capabilities_get()
80+{
81+#if defined(CONFIG_RDK_EXTENDER)
82+ return TARGET_EXTENDER_TYPE;
83+#else
84+ return 0;
85+#endif
86+}