Final changes for current wifi parameters.

Mon, 13 Feb 2023 16:30:58 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 13 Feb 2023 16:30:58 +0100
changeset 630
ee8afcdf2982
parent 629
dab1a7450a42
child 631
660001882989

Final changes for current wifi parameters.

thermferm/mqtt.c file | annotate | diff | comparison | revisions
--- a/thermferm/mqtt.c	Mon Feb 13 15:22:43 2023 +0100
+++ b/thermferm/mqtt.c	Mon Feb 13 16:30:58 2023 +0100
@@ -1524,10 +1524,6 @@
 			if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
 			    syslog(LOG_NOTICE, "Error %d opening INET socket", errno);
 			} else {
-			    if (ioctl(sock, SIOCGIWNAME, &wrq) == 0) {
-				syslog(LOG_NOTICE, "IF: %s", wrq.ifr_name);
-			    }
-
 			    wrq.u.essid.pointer = essid;
 			    if (ioctl(sock, SIOCGIWESSID, &wrq) != -1) {
 			    	payload = xstrcat(payload, (char *)",\"ssid\":\"");
@@ -1540,7 +1536,6 @@
 			    wrq.u.data.length = sizeof(struct iw_statistics);
 			    wrq.u.data.flags = 1;
 			    if (ioctl(sock, SIOCGIWSTATS, &wrq) != -1) {
-				syslog(LOG_NOTICE, "Signal level is %d %d %d", iwstats.qual.updated & IW_QUAL_DBM, iwstats.qual.level, iwstats.qual.noise);
 				if ((iwstats.qual.updated & (IW_QUAL_QUAL_INVALID | IW_QUAL_LEVEL_INVALID)) == 0) {
 				    /* iwstats.qual.level is __u8 */
 				    if (iwstats.qual.updated & IW_QUAL_DBM) {

mercurial