Fix a stupid bug which resulted in a blank line in the status output if
WEP is supported, but not keys are set. MFC after: 3 days
This commit is contained in:
parent
34224133fc
commit
c5d3adcccc
@ -359,10 +359,8 @@ ieee80211_status (s, info)
|
||||
printf("\n");
|
||||
|
||||
ireq.i_type = IEEE80211_IOC_WEP;
|
||||
if (ioctl(s, SIOCG80211, &ireq) < 0 ||
|
||||
ireq.i_val == IEEE80211_WEP_NOSUP)
|
||||
goto nowep;
|
||||
else {
|
||||
if (ioctl(s, SIOCG80211, &ireq) != -1 &&
|
||||
ireq.i_val != IEEE80211_WEP_NOSUP) {
|
||||
printf("\twepmode");
|
||||
switch (ireq.i_val) {
|
||||
case IEEE80211_WEP_OFF:
|
||||
@ -415,11 +413,9 @@ ieee80211_status (s, info)
|
||||
if(spacer == '\t')
|
||||
spacer = ' ';
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
if (spacer == ' ')
|
||||
printf("\n");
|
||||
}
|
||||
nowep:
|
||||
|
||||
|
||||
end:
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user