Firstly - disregard the posts of __spc__, particularly those that mention anything about files in /etc/rc.d/*. These are not Suse configuration files, but more like Fedora or RedHat. On Suse /etc/rc.d contains startup scripts, not configurations. As such, it would be the wrong place to begin hacking.
Secondly, ndiswrapper 1.5 has caused (me) some grief with certain kernels, so I'd suggest to upgrade to 1.10.
You seem to have performed the correct steps in what concerns ndiswrapper, so I won't address that.
All network connectivity configuration files in Suse reside in the directory /etc/sysconfig/network. They can be edited using Yast, or manually, if you preferred.
The configuration of a network card is stored in a file named
Code:
/etc/sysconfig/network/ifcfg-<device prefix>-id-<HWAddr>
- device prefix is something like "eth" (for eth0, eth1, etc.) or "wlan" (for wlan0, etc.), depending on the name of the device assigned to the card.
- HWAddr is the hardware address (MAC) of the card in question. You can find the MAC addresses of the cards in your computer by running
Since ndiswrapper names the device wlan, in most likelihood your configuration file should be named:
Code:
/etc/sysconfig/network/ifcfg-wlan0-id-<HWAddr>
Such configuration files are written by yast, so you could create one from there. I would suggest at this point to remove the files /etc/sysconfig/network/ifcgf-* (back them up first, in case something went wrongly, of course).
Then modprobe ndiswrapper, to make sure that yast sees the driver. At this point, if you typed "iwlist scan" you should see your access point (or at least a mention of the wlan0 interface, in case you weren't around any access points).
This is a sample output:
Code:
lo Interface doesn't support scanning.
sit0 Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:13:10:89:FE:57
ESSID:"linksys"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-62 dBm Noise level:-256 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:bcn_int=100
Extra:atim=0
Now, if you started yast, the interface wlan0 would be detected, so you could configure it. For the time being, don't set up any encryption - small steps at a time. After you saved the new configuration, check for the file
/etc/sysconfig/network/ifcfg-wlan0-id-<your hwaddr>.
For instance, my configuration without encryption looks like this:
Code:
BOOTPROTO='dhcp'
BROADCAST=''
IFPLUGD_PRIORITY='10'
IPADDR=''
MTU=''
NAME='BCM94306 Wireless Network Card'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='manual'
USERCONTROL='no'
WIRELESS_AP=''
WIRELESS_AUTH_MODE='open'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL=''
WIRELESS_CLIENT_CERT=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_ESSID='LAWN'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0=''
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_POWER='yes'
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK=''
_nm_name='BCM94306'
At this point, you can start the wireless network with:
Code:
rcnetwork stop
rcnetwork start wlan0
Such a configuration assumes that your access point is running a DHCP server. So, if this didn't work, make sure that:
- the access point is running a DHCP server
- the access point allows your MAC address to connect (see security restrictions)
- there is at least one available IP address in the dynamic pool of the access point
Once you got this working, I would suggest to try to install a more secure environment, using wpa (wpa_supplicant).
This can also be done from yast, which will add more info in the configuration files. Later, when you start the network, a wpa_supplicant.conf file will be automatically generated, so you needn't write it yourself.
My configuration file looks like this:
Code:
BOOTPROTO='static'
BROADCAST=''
IFPLUGD_PRIORITY='10'
IPADDR='192.168.1.108'
incrementedAddressSetup='yes'
MTU=''
NAME='BCM94306 Wireless Network Card'
NETMASK='255.255.255.0'
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='manual'
USERCONTROL='no'
WIRELESS_AP='00:0F:66:B2:AC:11'
WIRELESS_AUTH_MODE='psk'
WIRELESS_BITRATE='auto'
WIRELESS_CA_CERT=''
WIRELESS_CHANNEL='2'
WIRELESS_CLIENT_CERT=''
WIRELESS_DEFAULT_KEY='0'
WIRELESS_ESSID='Sequoia'
WIRELESS_FREQUENCY=''
WIRELESS_KEY=''
WIRELESS_KEY_0=''
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_NICK=''
WIRELESS_NWID=''
WIRELESS_POWER='yes'
WIRELESS_WPA_IDENTITY=''
WIRELESS_WPA_PASSWORD=''
WIRELESS_WPA_PSK='Greaua urgie ce-Aheilor mii de amaruri le-aduse'
_nm_name='BCM94306'
In this example, I switched from DHCP to a static address, and I fixed the access point to the one that has the MAC address 00:0F:66:B2:AC:11.
I prefer to boot the computer without any network configured, so the start mode is "manual". Given this, one can start the network with the command:
Code:
rcnetwork start wlan0 -o manual
Hope this helps.