hal: Update platform config params after parsing each kv pair

Existing code parses platform specific config_params from platform
info xml and sends all kvpairs together at the end of config_params
tag. This limits the functionality as we cannot add multiple entries
with the same key. This is because the last parsed kv pair overwrites
the existing key in the hashMap.

Example: With the following xml entries, operator_info for only sprint
entry gets updated in platform data.
<config_params>
    <param key="operator_info" value="tmus;aa;bb;cc"/>
    <param key="operator_info" value="sprint;xx;yy;zz"/>
    ...
</config_params>

Fix this by setting platform data for config params after parsing each
kv pair instead of sending all params together at the end of tag.

Change-Id: Ic4e08be0c25dc8ce07e1bd0fc0de7c4be0e84960
diff --git a/hal/platform_info.c b/hal/platform_info.c
index 8ee8b07..827c558 100644
--- a/hal/platform_info.c
+++ b/hal/platform_info.c
@@ -653,6 +653,8 @@
     }
 
     str_parms_add_str(my_data.kvpairs, (char*)attr[1], (char*)attr[3]);
+    if (my_data.caller == PLATFORM)
+        platform_set_parameters(my_data.platform, my_data.kvpairs);
 done:
     return;
 }
@@ -1387,9 +1389,6 @@
         section = ROOT;
     } else if (strcmp(tag_name, "config_params") == 0) {
         section = ROOT;
-        if (my_data.caller == PLATFORM) {
-            platform_set_parameters(my_data.platform, my_data.kvpairs);
-        }
     } else if (strcmp(tag_name, "operator_specific") == 0) {
         section = ROOT;
     } else if (strcmp(tag_name, "interface_names") == 0) {