[Madwifi-cvs] revision 1538 committed by kelmo
Status: Beta
Brought to you by:
otaku
From: kelmo <svn...@ma...> - 2006-05-01 20:56:26
|
Project : madwifi Revision : 1538 Author : kelmo Date : 2006-05-01 22:56:16 +0200 (Mon, 01 May 2006) Log Message : Revert a change in r1505 that caused wlanconfig to exit with a confusing error status for some operations. Affected Files: * trunk/tools/wlanconfig.c updated Modified: trunk/tools/wlanconfig.c =================================================================== --- trunk/tools/wlanconfig.c 2006-05-01 04:11:01 UTC (rev 1537) +++ trunk/tools/wlanconfig.c 2006-05-01 20:56:16 UTC (rev 1538) @@ -507,7 +507,7 @@ errx(1, "unable to get station information"); len = iwr.u.data.length; if (len < sizeof(struct ieee80211req_sta_info)) - errx(1, "len < sizeof(struct ieee80211req_scan_result)"); + return; printf("%-17.17s %4s %4s %4s %4s %4s %4s %6s %6s %4s %5s %3s %8s %8s\n", "ADDR", @@ -586,7 +586,7 @@ if (len == -1) errx(1, "unable to get scan results"); if (len < sizeof(struct ieee80211req_scan_result)) - errx(1, "len < sizeof(struct ieee80211req_scan_result)"); + return; printf("%-14.14s %-17.17s %4s %4s %-5s %3s %4s\n", "SSID", |