[EDGEPOD-159] Make Accelleran CBRS CU run with Accelleran B42 - for MWC

Change-Id: I4c7ddaafd3a2fbe21bd769400a62757df6808df3
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-cu/Chart.yaml b/ran/accelleran-cbrs/accelleran-cbrs-cu/Chart.yaml
index b12945e..3e32b53 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-cu/Chart.yaml
+++ b/ran/accelleran-cbrs/accelleran-cbrs-cu/Chart.yaml
@@ -18,4 +18,4 @@
 description: A Helm chart to install Accelleran CU on CBRS band
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.1.3
+version: 0.1.4
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-cu/templates/statefulset-accelleran-cbrs-cu.yaml b/ran/accelleran-cbrs/accelleran-cbrs-cu/templates/statefulset-accelleran-cbrs-cu.yaml
index d1ec32d..36df9a9 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-cu/templates/statefulset-accelleran-cbrs-cu.yaml
+++ b/ran/accelleran-cbrs/accelleran-cbrs-cu/templates/statefulset-accelleran-cbrs-cu.yaml
@@ -96,6 +96,17 @@
           redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_EARFCNDLLIST;
           redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_EARFCNULLIST;
           redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTEEPC;
+        {{- if .Values.config.mwc }}
+          sqlite3 /data/datastoreRemRw.db "update FapServiceCellConfigLteRanRf_ULBandwidthList set ULBandwidth='2';";
+          sqlite3 /data/datastoreRemRw.db "update FapServiceCellConfigLteRanRf_DLBandwidthList set DLBandwidth='2';";
+          sqlite3 /data/datastore.db "update adiPhyConfig set registersInitFilePath='/usr/bin/ad9362_init_zen5Mhz.txt';";
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hset ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_DLBANDWIDTHLIST DLBANDWIDTH 2
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hset ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_ULBANDWIDTHLIST ULBANDWIDTH 2
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hset ENB_{{ .Values.config.vranL3.instanceId }}_ADIPHYCONFIG REGISTERSINITFILEPATH /usr/bin/ad9362_init_zen5Mhz.txt
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_DLBANDWIDTHLIST
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_FAPSERVICECELLCONFIGLTERANRF_ULBANDWIDTHLIST
+          redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} hgetall ENB_{{ .Values.config.vranL3.instanceId }}_ADIPHYCONFIG
+        {{- end }}
           sleep 30;
           /data/l3service;
         securityContext:
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-cu/values.yaml b/ran/accelleran-cbrs/accelleran-cbrs-cu/values.yaml
index 1a23935..4699f16 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-cu/values.yaml
+++ b/ran/accelleran-cbrs/accelleran-cbrs-cu/values.yaml
@@ -36,6 +36,7 @@
       memory: 1Gi
 
 config:
+  mwc: false
   vranL3:
     zlogConf:
       bufferMin: 64K