Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/3] stedriver: remove unsupported CAIF socket IOCTLs.
@ 2010-08-09 21:29 Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
  2010-08-09 21:29 ` [PATCH 2/3] stedriver: Copy caif_socket.h from 2.6.36 release candidate Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
  2010-08-11 23:03 ` [PATCH 1/3] stedriver: remove unsupported CAIF socket IOCTLs Denis Kenzior
  0 siblings, 2 replies; 5+ messages in thread
From: Sjur =?unknown-8bit?q?Br=C3=A6ndeland?= @ 2010-08-09 21:29 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1960 bytes --]

From: Sjur Brændeland <sjur.brandeland@stericsson.com>

---
 drivers/stemodem/gprs-context.c |   48 +-------------------------------------
 1 files changed, 2 insertions(+), 46 deletions(-)

diff --git a/drivers/stemodem/gprs-context.c b/drivers/stemodem/gprs-context.c
index 2e54f9f..29ee446 100644
--- a/drivers/stemodem/gprs-context.c
+++ b/drivers/stemodem/gprs-context.c
@@ -173,26 +173,7 @@ static struct conn_info *conn_info_create(unsigned int device,
  */
 static gboolean caif_if_create(const char *interface, unsigned int connid)
 {
-	int s;
-	static struct ifcaif_param param;
-	static struct ifreq ifr;
-
-	param.ipv4_connid = connid;
-	ifr.ifr_data = (void *) &param;
-	strcpy(ifr.ifr_name, interface);
-
-	s = socket(AF_CAIF, SOCK_SEQPACKET, CAIFPROTO_AT);
-	if (s < 0) {
-		DBG("Failed to create socket for CAIF interface");
-		return FALSE;
-	}
-
-	if (ioctl(s, SIOCCAIFNETNEW, &ifr) < 0) {
-		DBG("Failed to create IP interface for CAIF");
-		return FALSE;
-	}
-
-	return TRUE;
+	return FALSE;
 }
 
 /*
@@ -200,32 +181,7 @@ static gboolean caif_if_create(const char *interface, unsigned int connid)
  */
 static gboolean caif_if_remove(const char *interface, unsigned int connid)
 {
-	int s;
-	static struct ifcaif_param param;
-	static struct ifreq ifr;
-
-	param.ipv4_connid = connid;
-	ifr.ifr_data = (void *) &param;
-	strcpy(ifr.ifr_name, interface);
-
-	s = socket(AF_CAIF, SOCK_SEQPACKET, CAIFPROTO_AT);
-	if (s < 0) {
-		DBG("Failed to create socket for CAIF interface");
-		return FALSE;
-	}
-
-	if (ioctl(s, SIOCGIFINDEX, &ifr) != 0) {
-		DBG("Did not find interface (%s) to remove",
-				interface);
-		return FALSE;
-	}
-
-	if (ioctl(s, SIOCCAIFNETREMOVE, &ifr) < 0) {
-		DBG("Failed to remove IP interface for CAIF");
-		return FALSE;
-	}
-
-	return TRUE;
+	return FALSE;
 }
 
 static void ste_eppsd_down_cb(gboolean ok, GAtResult *result,
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-11 23:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-09 21:29 [PATCH 1/3] stedriver: remove unsupported CAIF socket IOCTLs Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-08-09 21:29 ` [PATCH 2/3] stedriver: Copy caif_socket.h from 2.6.36 release candidate Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-08-09 21:29   ` [PATCH 3/3] stedriver: Copy if_caif.h " Sjur =?unknown-8bit?q?Br=C3=A6ndeland?=
2010-08-11 23:04   ` [PATCH 2/3] stedriver: Copy caif_socket.h " Denis Kenzior
2010-08-11 23:03 ` [PATCH 1/3] stedriver: remove unsupported CAIF socket IOCTLs Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox