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:
Brooks Davis 2001-07-25 05:52:19 +00:00
parent f44257c29a
commit a341cbc3fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80315

View File

@ -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;