From 86209e4f24aba3bbff513669794337b374fc3f20 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Mon, 20 Jan 2003 19:46:46 +0000 Subject: [PATCH] fix -L (scan ap's): use WI_RID_SCAN_APS instead of WI_RDI_SCAN_REQ to start a scan so the driver can use the best/right op for the card --- usr.sbin/wicontrol/wicontrol.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/usr.sbin/wicontrol/wicontrol.c b/usr.sbin/wicontrol/wicontrol.c index ce16311426e..586450d48bc 100644 --- a/usr.sbin/wicontrol/wicontrol.c +++ b/usr.sbin/wicontrol/wicontrol.c @@ -514,13 +514,8 @@ wi_printaplist(const char *iface) prism2 = wreq.wi_val[0]; /* send out a scan request */ - wreq.wi_len = prism2 ? 3 : 1; - wreq.wi_type = WI_RID_SCAN_REQ; - - if (prism2) { - wreq.wi_val[0] = 0x3FFF; - wreq.wi_val[1] = 0x000F; - } + wreq.wi_len = 1; + wreq.wi_type = WI_RID_SCAN_APS; wi_setval(iface, &wreq);