cosmetic: comments, log typo, explicit pointer
Fix log typo 'REGSITER' and add some comments on UE Register with TMSI.
The container_pair struct starts with 'list', so passing the container_pair
pointer is equivalent to passing the list; but instead, explicitly mention the
list member to avoid confusion.
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c
index 971e97e..246c983 100644
--- a/src/hnbgw_hnbap.c
+++ b/src/hnbgw_hnbap.c
@@ -123,7 +123,7 @@
if (rc < 0)
return rc;
- DEBUGP(DHNBAP, "HNB-DE-REGSITER cause=%ld\n",
+ DEBUGP(DHNBAP, "HNB-DE-REGISTER cause=%ld\n",
ies.cause);
hnbap_free_hnbde_registeries(&ies);
@@ -184,7 +184,9 @@
ies.uE_Identity.choice.iMSIESN.iMSIDS41.size);
break;
default:
- LOGP(DHNBAP, LOGL_NOTICE, "UE-REGISTER-REQ without IMSI?!?\n");
+ LOGP(DHNBAP, LOGL_NOTICE, "UE-REGISTER-REQ without IMSI\n");
+ /* TODO: this is probably a TMSI registration. Store TMSIs
+ * and look them up to accept UE Registration. */
return -1;
}