From nobody@FreeBSD.org  Fri May 11 13:54:22 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id F2981106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 May 2012 13:54:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id A348D8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 May 2012 13:54:22 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q4BDsL3C074188
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 May 2012 13:54:21 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q4BDsLi0074187;
	Fri, 11 May 2012 13:54:21 GMT
	(envelope-from nobody)
Message-Id: <201205111354.q4BDsLi0074187@red.freebsd.org>
Date: Fri, 11 May 2012 13:54:21 GMT
From: Johann <jhugo@meraka.csir.co.za>
To: freebsd-gnats-submit@FreeBSD.org
Subject: problem with "ifconfig list scan" command in ad-hoc mode
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         167798
>Category:       kern
>Synopsis:       ifconfig(8): problem with "ifconfig list scan" command in ad-hoc mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 11 14:00:27 UTC 2012
>Closed-Date:    
>Last-Modified:  Fri May 25 10:20:02 UTC 2012
>Originator:     Johann
>Release:        9.0-STABLE
>Organization:
CSIR
>Environment:
FreeBSD mesh-2aee 9.0-STABLE FreeBSD 9.0-STABLE #1: Tue Feb 14 09:13:11 SAST 2012     jhay@magrathea.meraka.csir.co.za:/var/scratch/9-stable/obj/i386.i386/var/scratch/9-stable/src/sys/SMALL  i386
>Description:
The "ifconfig list scan" command does not work in adhoc mode if the channel was manually set with "ifconfig wlanX channel Y" 

It only works if the channel was not configured.
>How-To-Repeat:
ifconfig wlan0 create wlandev ath0 wlanmode adhoc
ifconfig wlan0 bssid 66:98:40:46:b7:0a up
ifconfig wlan0 list scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
meraka          0a:02:6f:8b:b6:93   11   54M -91:-96  100 EPS  WME RSN ATH
CSIR Guest      06:02:6f:8b:b6:93   11   54M -90:-96  100 ES   WME ATH

------------------------------------------------------------------
Now lock the channel, after that "list scan" gives no more output.
------------------------------------------------------------------
ifconfig wlan0 down
ifconfig wlan0 channel 13 up
ifconfig wlan0 list scan

------------------------------------------------------------------
Remove the channel selection and it works again
------------------------------------------------------------------
ifconfig wlan0 down
ifconfig wlan0 channel -
ifconfig wlan0 up
mesh-2aee:~ # ifconfig wlan0 list scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
CSIR Wireless   00:02:6f:8b:b6:93   11   54M -89:-96  100 EPS  WME RSN ATH
CSIR Guest      06:02:6f:8b:b6:93   11   54M -90:-96  100 ES   WME ATH

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Fri May 11 16:26:25 UTC 2012 
Responsible-Changed-Why:  
fix synopsis and assign 

http://www.freebsd.org/cgi/query-pr.cgi?pr=167798 

From: Johann Hugo <jhugo@meraka.csir.co.za>
To: bug-followup@freebsd.org
Cc: jhugo@meraka.csir.co.za,
 Adrian Chadd <adrian@freebsd.org>
Subject: Re: kern/167798: ifconfig(8): problem with "ifconfig list scan" command in ad-hoc mode
Date: Fri, 25 May 2012 12:14:42 +0200

 --Boundary-01=_Su1vPhBSl1WyPgR
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 I found a way to get it to work with the channel that was manually set
 and I can get it to stop stop working again.
 
 ------------------------------------------------------------------
 Configure adapter (no output):
 ------------------------------------------------------------------
 mesh-284f:~ # ifconfig wlan0 channel 13 ssid test bssid 66:98:40:46:b7:0a up
 mesh-284f:~ # ifconfig wlan0 list scan
 
 ------------------------------------------------------------------
 Get it to work:
 ------------------------------------------------------------------
 mesh-284f:~ # ifconfig wlan0 channel -; ifconfig wlan0 channel 13
 mesh-284f:~ # ifconfig wlan0 list scan
 SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
 meraka          0a:02:6f:8b:b6:93   11   54M -86:-96  100 EPS  WME RSN ATH
 CSIR Guest      06:02:6f:8b:b6:93   11   54M -86:-96  100 ES   WME ATH
 CSIR Wireless   00:02:6f:8b:b6:93   11   54M -87:-96  100 EPS  WME RSN ATH
 eduroam         0e:02:6f:8b:b6:93   11   54M -87:-96  100 EPS  WME RSN ATH
 
 ------------------------------------------------------------------
 Get it to stop working (no output):
 ------------------------------------------------------------------
 mesh-284f:~ # ifconfig wlan0 down; ifconfig wlan0 up
 mesh-284f:~ # ifconfig wlan0 list scan
 
 --Boundary-01=_Su1vPhBSl1WyPgR
 Content-Type: text/html;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
 <html><head><meta name="qrichtext" content="1" /><style type="text/css">
 p, li { white-space: pre-wrap; }
 </style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:8pt; font-weight:400; font-style:normal;">
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I found a way to get it to work with the channel that was manually set</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">and I can get it to stop stop working again.</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Configure adapter (no output):</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 channel 13 ssid test bssid 66:98:40:46:b7:0a up</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 list scan</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Get it to work:</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 channel -; ifconfig wlan0 channel 13</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 list scan</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">meraka          0a:02:6f:8b:b6:93   11   54M -86:-96  100 EPS  WME RSN ATH</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">CSIR Guest      06:02:6f:8b:b6:93   11   54M -86:-96  100 ES   WME ATH</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">CSIR Wireless   00:02:6f:8b:b6:93   11   54M -87:-96  100 EPS  WME RSN ATH</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">eduroam         0e:02:6f:8b:b6:93   11   54M -87:-96  100 EPS  WME RSN ATH</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Get it to stop working (no output):</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">------------------------------------------------------------------</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 down; ifconfig wlan0 up</p>
 <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">mesh-284f:~ # ifconfig wlan0 list scan</p>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; ">&nbsp;</p></body></html>
 --Boundary-01=_Su1vPhBSl1WyPgR--
>Unformatted:
