diff options
Diffstat (limited to 'src/driver.h')
-rw-r--r-- | src/driver.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/driver.h b/src/driver.h index 61504dd4..f753c7f5 100644 --- a/src/driver.h +++ b/src/driver.h @@ -74,10 +74,13 @@ struct ofono_call { * */ #define OFONO_MAX_OPERATOR_NAME_LENGTH 63 +/* MCC is always three digits. MNC is either two or three digits */ +#define OFONO_MAX_MNC_MCC_LENGTH 3 + struct ofono_network_operator { char name[OFONO_MAX_OPERATOR_NAME_LENGTH + 1]; - short mcc; - short mnc; + char mcc[OFONO_MAX_MNC_MCC_LENGTH + 1]; + char mnc[OFONO_MAX_MNC_MCC_LENGTH + 1]; int status; int tech; }; |