summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-12-24 12:13:59 +0100
committerChristian Marangi <ansuelsmth@gmail.com>2023-01-20 17:26:59 +0100
commit81184d27633dfa65677da11e4097d619ba3210e9 (patch)
tree083554fcd9585e33bd0f1fdb3637b7a4652bf937
parent2c4ee842e57b02cc7d2dd748ccb6ac61561a3ac4 (diff)
downloadiwinfo-81184d27633dfa65677da11e4097d619ba3210e9.tar.gz
nl80211: fix some comments
Spelling and indenting fixes. Signed-off-by: Andre Heider <a.heider@gmail.com>
-rw-r--r--iwinfo_nl80211.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index f598ef5..5bc2f51 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -367,7 +367,7 @@ static int nl80211_phy_idx_from_macaddr(const char *opt)
if (!opt)
return -1;
- snprintf(buf, sizeof(buf), "/sys/class/ieee80211/*"); /**/
+ snprintf(buf, sizeof(buf), "/sys/class/ieee80211/*");
if (glob(buf, 0, NULL, &gl))
return -1;
@@ -813,7 +813,7 @@ static char * nl80211_phy2ifname(const char *ifname)
DIR *d;
struct dirent *e;
- /* Only accept phy name of the form phy%d or radio%d */
+ /* Only accept phy name in the form of phy%d or radio%d */
if (!ifname)
return NULL;
@@ -868,7 +868,7 @@ static int nl80211_get_mode_cb(struct nl_msg *msg, void *arg)
IWINFO_OPMODE_CLIENT, /* managed */
IWINFO_OPMODE_MASTER, /* AP */
IWINFO_OPMODE_AP_VLAN, /* AP/VLAN */
- IWINFO_OPMODE_WDS, /* WDS */
+ IWINFO_OPMODE_WDS, /* WDS */
IWINFO_OPMODE_MONITOR, /* monitor */
IWINFO_OPMODE_MESHPOINT, /* mesh point */
IWINFO_OPMODE_P2P_CLIENT, /* P2P-client */
@@ -2564,7 +2564,7 @@ static void nl80211_get_scanlist_ie(struct nlattr **bss,
iwinfo_parse_rsn(&e->crypto, ie + 6, ie[1] - 4,
IWINFO_CIPHER_TKIP, IWINFO_KMGMT_PSK);
break;
- case 61: /* HT oeration */
+ case 61: /* HT operation */
if (ie[1] >= 3) {
e->ht_chan_info.primary_chan = ie[2];
e->ht_chan_info.secondary_chan_off = ie[3] & 0x3;