Bug 842423 - TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type'
Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has...
Keywords:
Status: CLOSED DUPLICATE of bug 955310
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: system-config-network
Version: 5.8
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
: 979735 (view as bug list)
Depends On:
Blocks: 1049888
TreeView+ depends on / blocked
 
Reported: 2012-07-23 20:24 UTC by paolopiace
Modified: 2014-02-04 15:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-31 13:24:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Network Configuration bug report (1.88 KB, text/plain)
2012-07-23 20:24 UTC, paolopiace
no flags Details

Description paolopiace 2012-07-23 20:24:14 UTC
Created attachment 599855 [details]
Network Configuration bug report

Description of problem:

Network Configuration manager cannot activate TP-LINK WN723N WLAN adapter (usb)

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

How reproducible:

Must install the $14 TP-LINK WN723N WLAN adapter

Actual results: See the enclosed bug report

Expected results: TP-LINK WN723N WLAN adapter should be activated and connected to WLAN

Comment 1 paolopiace 2012-07-23 20:42:07 UTC
Forgot to mention, the driver for the WLAN adapter is available here:

http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=48&PFid=48&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true#2742

It will download the "RTL819xCU _USB_linux_v3.4.3_4369.20120622.zip"

Comment 2 paolopiace 2012-07-23 20:59:31 UTC
Another thing: the exact same device+driver works fine on CentOS 6.2

Comment 3 Maeoll Kim 2012-09-21 03:22:43 UTC
Hello,

I came here to report this bug occuring on CentOS 5.8 (packaged with Rocks Clusters 5.5) using the kmod-r8192ce-PAE package from Elrepo on a realtek 8188CE/8912CE wifi card. The device works fine if I use NetworkManager, but I need to use multiple NICs.

Comment 4 Maeoll Kim 2012-09-21 05:32:48 UTC
I was able to circumvent this error message by doing following this post and altering some things: 
https://forums.oracle.com/forums/thread.jspa?threadID=1116672

1. manually adding an entry into the /etc/wpa_supplicant.conf with an appropriate profile and key,

2. creating a device profile in /etc/sysconfig/network-scripts/ifcfg-wlan0 

3. running the following commands:
  chkconfig network off
  chkconfig wpa_supplicant off

4. editing /etc/rc.local to add the following lines:
  ifconfig wlan0 down
  ifconfig wlan0 192.168.0.100 (I have a static config)
  ifconfig wlan0 up
  wpa_supplicant -Bw - Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
  service network start


I was able to circumvent the crash experienced from making a r819x profile with system-config-network GUI and being able to avoid NetworkManager. A r819x profile also appears in the Network Monitor applet in gnome. It gives a different error now, but the device works and it shows it is active.

Comment 5 Jirka Klimes 2013-07-10 07:28:03 UTC
*** Bug 979735 has been marked as a duplicate of this bug. ***

Comment 6 Harald Hoyer 2014-01-31 13:24:18 UTC
Component: system-config-network
Version: 1.3.99.21
Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: HwWireless instance has no attribute 'type'

Traceback (most recent call last):
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 757, in on_activateButton_clicked
    self.activateButtonFunc[self.active_page](button)
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 968, in on_deviceActivateButton_clicked
    if self.save() != 0:
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 370, in save
    self.saveHardware()
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 398, in saveHardware
    hardwarelist.save()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 482, in save
    if (hw.Type == ETHERNET or \
AttributeError: HwWireless instance has no attribute 'type'

Local variables in innermost frame:
self: HardwareList.Wireless.wlan0.Status=system
HardwareList.Wireless.wlan0.Name=wlan0
HardwareList.Wireless.wlan0.Type=Wireless
HardwareList.Wireless.wlan0.Card.ModuleName=rtl8192cu
HardwareList.Wireless.wlan0.Description=Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN
HardwareList.Ethernet.eth0.Status=system
HardwareList.Ethernet.eth0.Name=eth0
HardwareList.Ethernet.eth0.Type=Ethernet
HardwareList.Ethernet.eth0.Card.ModuleName=r8169
HardwareList.Ethernet.eth0.Description=Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller

modules: <netconfpkg.NCHardwareList.MyConfModules instance at 0x3d96e18>
hw: Hardware.Status=system
Hardware.Name=wlan0
Hardware.Type=Wireless
Hardware.Card.ModuleName=rtl8192cu
Hardware.Description=Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN

wvdial: <rhpl.ConfSMB.ConfSMB instance at 0x3d91200>
type: Ethernet
isdn: <netconfpkg.NCisdnhardware.ConfISDN instance at 0x3d91128>
mod: eth0

*** This bug has been marked as a duplicate of bug 955310 ***


Note You need to log in before you can comment on or make changes to this bug.