nl80211: fix some comments
Spelling and indenting fixes. Signed-off-by: Andre Heider <a.heider@gmail.com>
This commit is contained in:
parent
2c4ee842e5
commit
81184d2763
1 changed files with 4 additions and 4 deletions
|
@ -367,7 +367,7 @@ static int nl80211_phy_idx_from_macaddr(const char *opt)
|
||||||
if (!opt)
|
if (!opt)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "/sys/class/ieee80211/*"); /**/
|
snprintf(buf, sizeof(buf), "/sys/class/ieee80211/*");
|
||||||
if (glob(buf, 0, NULL, &gl))
|
if (glob(buf, 0, NULL, &gl))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
@ -813,7 +813,7 @@ static char * nl80211_phy2ifname(const char *ifname)
|
||||||
DIR *d;
|
DIR *d;
|
||||||
struct dirent *e;
|
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)
|
if (!ifname)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
@ -2564,7 +2564,7 @@ static void nl80211_get_scanlist_ie(struct nlattr **bss,
|
||||||
iwinfo_parse_rsn(&e->crypto, ie + 6, ie[1] - 4,
|
iwinfo_parse_rsn(&e->crypto, ie + 6, ie[1] - 4,
|
||||||
IWINFO_CIPHER_TKIP, IWINFO_KMGMT_PSK);
|
IWINFO_CIPHER_TKIP, IWINFO_KMGMT_PSK);
|
||||||
break;
|
break;
|
||||||
case 61: /* HT oeration */
|
case 61: /* HT operation */
|
||||||
if (ie[1] >= 3) {
|
if (ie[1] >= 3) {
|
||||||
e->ht_chan_info.primary_chan = ie[2];
|
e->ht_chan_info.primary_chan = ie[2];
|
||||||
e->ht_chan_info.secondary_chan_off = ie[3] & 0x3;
|
e->ht_chan_info.secondary_chan_off = ie[3] & 0x3;
|
||||||
|
|
Loading…
Reference in a new issue