Bug 254046

Summary: ifup-wireless ups b43 network interface before setting mode
Product: [Fedora] Fedora Reporter: Lubomir Kundrak <lkundrak>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: rvokal
Target Milestone: ---Keywords: EasyFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-10-08 18:06:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ifup-wireless.diff none

Description Lubomir Kundrak 2007-08-23 19:48:05 UTC
Description of problem:

/etc/sysconfig/network-scripts/ifup-wireless contain the following lines:

     33 # Set link up (some cards require this.)
     34 /sbin/ip link set dev ${DEVICE} up

My network card (Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller)
with b43 driver needs the exact opposite, attempt to change mode is unsuccessful
when the interface is up:

# ifup wlan0
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Device or resource busy.
# ifconfig wlan0 down
# iwconfig wlan0 mode Master
# ifconfig wlan0 up
#

Version-Release number of selected component (if applicable):

initscripts-8.55-1

Comment 1 Lubomir Kundrak 2007-08-27 15:42:11 UTC
16:09 <linville> if anything, I think a driver should have to be down before
changing mode (the way mac80211-based drivers require it)
16:09 <linville> I'd be curious to know which ones need to be up

Comment 2 Bill Nottingham 2007-08-29 17:44:35 UTC
I really don't care, I just am NOT going to hardcode 'do X for driver A, Y for
driver B'.

See bug 228253.

Comment 3 Lubomir Kundrak 2007-08-30 10:24:58 UTC
Bill: maybe set mode, then link up, and then set essid?

Comment 4 Lubomir Kundrak 2007-10-08 14:27:35 UTC
Ping on this.

Comment 5 John W. Linville 2007-10-08 14:36:38 UTC
Comment 3 sounds sane.  FWIW, I would consider any driver that requires ifup 
before changing the mode to be a bug.

OTOH, nearly every wireless bug I have mentions the 'Error for wireless 
request "Set Mode" (8B06)' message...

Comment 6 John W. Linville 2007-10-08 14:37:19 UTC
Created attachment 219791 [details]
ifup-wireless.diff

Comment 7 Bill Nottingham 2007-10-08 18:06:15 UTC
Added in CVS, will be in 8.59-1.