Skip to contentSkip to conversation

atmodem: CGDCONT handling for cid 0

PATCH In review Antara Borwankar 3 participants 3 messages Sep 27, 2019 – Sep 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 atmodem: CGDCONT handling for cid 0

Added handling for cid 0 in +CGDCONT callback.

---
 drivers/atmodem/gprs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atmodem/gprs.c +1 -1
index 16f4927..defbba0 100644
@@ -240,7 +240,7 @@ static void at_cgdcont_read_cb(gboolean ok, GAtResult *result,
 		return;
 	}
 
-	cids = l_uintset_new(activated_cid);
+	cids = l_uintset_new_from_range(0,activated_cid);
 
 	l_uintset_put(cids, activated_cid);
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 10 lines · Antara Borwankar

Added handling for cid 0 in +CGDCONT callback.

---
 drivers/atmodem/gprs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atmodem/gprs.c +0 -0
index 16f4927..defbba0 100644

drivers/atmodem/gprs.c static void at_cgdcont_read_cb(gboolean ok, GAtResult *result, · line 244

Quoted 6 lines
drivers/atmodem/gprs.c +1 -1
@@ -240,7 +240,7 @@ static void at_cgdcont_read_cb(gboolean ok, GAtResult *result,
 		return;
 	}
 
-	cids = l_uintset_new(activated_cid);
+	cids = l_uintset_new_from_range(0,activated_cid);
 

For consistency, it should probably be "(0, activated_cid);".

drivers/atmodem/gprs.c static void at_cgdcont_read_cb(gboolean ok, GAtResult *result, · line 246

Quoted 2 lines
drivers/atmodem/gprs.c +0 -0
 	l_uintset_put(cids, activated_cid);
 

Best regards,
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
In reply to Antara Borwankar

Hi Antara,

Quoted 10 lines · Antara Borwankar

Added handling for cid 0 in +CGDCONT callback.

---
  drivers/atmodem/gprs.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atmodem/gprs.c +0 -0
index 16f4927..defbba0 100644

drivers/atmodem/gprs.c static void at_cgdcont_read_cb(gboolean ok, GAtResult *result, · line 243

Quoted 5 lines
drivers/atmodem/gprs.c +1 -1
@@ -240,7 +240,7 @@ static void at_cgdcont_read_cb(gboolean ok, GAtResult *result,
  		return;
  	}
 
-	cids = l_uintset_new(activated_cid);
+	cids = l_uintset_new_from_range(0,activated_cid);

Applied with a silent amend to put a space between ',' and 2nd argument.

drivers/atmodem/gprs.c static void at_cgdcont_read_cb(gboolean ok, GAtResult *result,

Quoted 4 lines
drivers/atmodem/gprs.c +0 -0
  	l_uintset_put(cids, activated_cid);
 
 

Regards,
-Denis