<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
@@ -0,0 +1,172 @@<br>
+/*<br>
+ *<br>
+ * oFono - Open Source Telephony<br>
+ *<br>
+ * Copyright (C) 2008-2009 Intel Corporation. All rights reserved.<br>
+ * Copyright (C) 2009 ProFUSION embedded systems. All rights reserved.<br>
+ *<br>
+ * This program is free software; you can redistribute it and/or modify<br>
+ * it under the terms of the GNU General Public License version 2 as<br>
+ * published by the Free Software Foundation.<br>
+ *<br>
+ * This program is distributed in the hope that it will be useful,<br>
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>
+ * GNU General Public License for more details.<br>
+ *<br>
+ * You should have received a copy of the GNU General Public License<br>
+ * along with this program; if not, write to the Free Software<br>
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA<br>
+ *<br>
+ */<br>
+<br>
+#ifdef HAVE_CONFIG_H<br>
+#include <config.h><br>
+#endif<br>
+<br>
+#define _GNU_SOURCE<br>
+#include <string.h><br>
+#include <stdlib.h><br>
+#include <stdio.h><br>
+<br>
+#include <glib.h><br>
+<br>
+#include <ofono/log.h><br>
+#include <ofono/modem.h><br>
+#include <ofono/netreg.h><br>
+<br>
+#include "gatchat.h"<br>
+#include "gatresult.h"<br>
+<br>
+#include "hfpmodem.h"<br>
+<br>
+#define OFONO_MAX_HFP_OPERATOR_NAME_LENGTH 16<br>
+<br>
+static const char *cops_prefix[] = { "+COPS:", NULL };<br>
+<br>
+struct netreg_data {<br>
+ GAtChat *chat;<br>
+ unsigned char cind_pos[HFP_INDICATOR_LAST];<br>
+ int cind_val[HFP_INDICATOR_LAST];<br>
+ char operator[16];<br></blockquote><div><br>-- Should we use above #define for operator name length?<br> -Br<br>Naveen<br><br></div></div><br>