Add UNSUPPORTED option to CiwlanConfig

This value will be returned for targets that do not support
distinguishing between the C_IWLAN modes.

Change-Id: I8b60095d5764708207df2979e346f5eb2898dd3c
CRs-Fixed: 3433260
diff --git a/extphone/src/com/qti/extphone/CiwlanConfig.java b/extphone/src/com/qti/extphone/CiwlanConfig.java
index 6bd5ea0..8bc8048 100644
--- a/extphone/src/com/qti/extphone/CiwlanConfig.java
+++ b/extphone/src/com/qti/extphone/CiwlanConfig.java
@@ -12,9 +12,13 @@
 
     private static final String TAG = "CiwlanConfig";
 
+    // On targets that support C_IWLAN modes, when there is a C_IWLAN status change from UI or UE
+    // moves between home and roaming, there will be a brief moment when the mode will be INVALID.
     public static final int INVALID = -1;
     public static final int ONLY = 0;
     public static final int PREFERRED = 1;
+    // On targets that do not support C_IWLAN modes, UNSUPPORTED will be returned.
+    public static final int UNSUPPORTED = 2;
 
     private int mHomeMode = INVALID;
     private int mRoamMode = INVALID;
@@ -35,6 +39,8 @@
                 return "ONLY";
             case PREFERRED:
                 return "PREFERRED";
+            case UNSUPPORTED:
+                return "UNSUPPORTED";
             default:
                 return "INVALID";
         }
@@ -46,6 +52,8 @@
                 return "ONLY";
             case PREFERRED:
                 return "PREFERRED";
+            case UNSUPPORTED:
+                return "UNSUPPORTED";
             default:
                 return "INVALID";
         }
@@ -59,6 +67,10 @@
         return mRoamMode == ONLY;
     }
 
+    public boolean isCiwlanModeSupported() {
+        return (mHomeMode != UNSUPPORTED && mRoamMode != UNSUPPORTED);
+    }
+
     @Override
     public int describeContents() {
         return 0;