LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Wireless internet on Slackware 12.1 (https://www.linuxquestions.org/questions/slackware-14/wireless-internet-on-slackware-12-1-a-655796/)

nawcom 07-23-2008 07:00 PM

for you guys struggling with setting up the wireless oldskool, I suggest using wicd to take care of the wireless stuff. I set up a nice package that takes care of making the changes in rc.inet1.conf and such, so you only need to reboot your computer, and set up your wireless settings in the wicd tray in your selected WM/DE.

http://nawcom.com/files/slack/wicd-1.4.2-i486-3bpn.tgz

I know some people were having issues with this using dhclient in slackware, since slackware uses dhcpcd, so i fixed that up. Give it a try ;)

And to the parent, the ath5k driver is what you're looking for for that wireless device.

[Added note: I have yet to build a 64 bit package, so if anyone wants it done, I will make it happen.]

Bruce Hill 07-23-2008 07:06 PM

nawcom,

Please post your SlackBuild script for that wicd package.

Edit: Otherwise, why would we trust you and install your package,
without knowing how you built it or having any experience with
packages you've built.

resaguk 07-23-2008 07:42 PM

Quote:

Originally Posted by nawcom (Post 3224272)
for you guys struggling with setting up the wireless oldskool, I suggest using wicd to take care of the wireless stuff. I set up a nice package that takes care of making the changes in rc.inet1.conf and such, so you only need to reboot your computer, and set up your wireless settings in the wicd tray in your selected WM/DE.

Thanks for the offer, but I really want to know where I've gone wrong - otherwise how will I learn?!

tomtomjkw 07-23-2008 11:42 PM

reasguk ->

first, comment out this part of rc.inet1.conf:
Quote:

DHCP_HOSTNAME[3]="{removed}"
WLAN_ESSID[3]="{removed}"
WLAN_MODE[3]="Managed"
if you use wpa_supplicant, essid and mode are included in wpa_supplicant_conf, so there's no need to duplicate it.

if this doesn't help, kill the existing wpa_supplicant process, and post the output of
#wpa_supplicant - Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

symatic 07-24-2008 12:08 AM

Quote:

Please post your SlackBuild script for that wicd package.
It is included in the package.

Bruce Hill 07-24-2008 12:35 AM

Quote:

Originally Posted by symatic (Post 3224484)
It is included in the package.

I don't think so - the one included in the package is from
Michelino Chionchio at Slacky EU that he used to start with:
Code:

less usr/doc/wicd-1.4.2/wicd.SlackBuild
#!/bin/sh
# Heavily based on the Slackware 12.0 SlackBuild
# http://wicd.sourceforge.net/
# Packager Michelino Chionchio - Thanks to www.slacky.eu
# Depends on: pygtk, dbus-python, pycairo, pygobject

CWD=`pwd`
TMP=${TMP:-/tmp/tgz}
PKG=$TMP/package-wicd
NAME=wicd
VERSION=1.4.2
ARCH=${ARCH:-i486}
BUILD=1mch
<snip>

Besides reading the script and seeing it doesn't do the same things,
you can see the build tag is 1mch, not 3bpn.

nawcom 07-24-2008 09:08 AM

Everything that I modified is done in the post install script mainly makes a backup of rc.inet1.conf so it doesn't scew up wicd's dhcp work with inet1s, and the patches are already taken care of on networking.py to work with dhcpcd. if you need a SlackBuild you can look here where Workman applied the main fix i pointed out. http://rlworkman.net/pkgs/sources/12...icd.SlackBuild Sorry if I caused any issues which where credit is due.

I'm updating slack-desc to make sure original credit goes to the slacky.eu man Again it is my mistake and apologize.

Bruce Hill 07-24-2008 09:12 AM

For SlackBuilds, I prefer Alien Bob's. Here's his for wicd.

resaguk 07-24-2008 02:31 PM

Quote:

Originally Posted by tomtomjkw (Post 3224458)
reasguk ->
first, comment out this part of rc.inet1.conf:

Ok - made no difference.

Quote:

Originally Posted by tomtomjkw (Post 3224458)
output of
#wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

Here it is:

Code:

# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 14 - start of a new network block
scan_ssid=0 (0x0)
ssid - hexdump_ascii(len={removed}):
    {removed}                          {removed}       
proto: 0x1
mode=0 (0x0)
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
Line: 27 - start of a new network block
key_mgmt: 0x4
priority=0 (0x0)
Priority group 0
  id=0 ssid='{removed}'
  id=1 ssid=''
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: {removed}
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=0
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

I hit CTRL-C in the end to stop it - otherwise it will sit there continually trying to connect.

For info, I'm connected on my notepad via the AP it can't find to post this, so the AP is up and running!

Does that help at all?

resaguk

nawcom 07-24-2008 03:16 PM

Quote:

Originally Posted by Bruce Hill (Post 3224953)
For SlackBuilds, I prefer Alien Bob's. Here's his for wicd.

Looks like I missed out on the 1.5 release, thanks for the link to Bob's, I'll be sure and update. I know the person who wrote it planned on adding support for older dhclient, pump, and dcpcd support to the next major release, so hopefully this does it. ;)

alisonken1 07-24-2008 06:15 PM

resaguk - is that for the ath5k kernel driver, or the madwifi driver? If you're using -iwlan0, I'll believe you're using the ath5k driver

There's been several notes that -Wext is still having problems with the madwifi driver.

Also, it looks like you have "scan ssid=0" set in the wpa_supplicant.conf file. Since scanning is off for that interface, it looks like it's not looking for the beacon of the AP you're trying to connect to.

resaguk 07-24-2008 07:25 PM

Quote:

Originally Posted by alisonken1 (Post 3225481)
resaguk - is that for the ath5k kernel driver, or the madwifi driver? If you're using -iwlan0, I'll believe you're using the ath5k driver

None of the above - I'm using windows drivers via ndiswrapper.

Quote:

Originally Posted by alisonken1 (Post 3225481)
Also, it looks like you have "scan ssid=0" set in the wpa_supplicant.conf file. Since scanning is off for that interface, it looks like it's not looking for the beacon of the AP you're trying to connect to.

Ok, this is the output with scanning enabled - I also checked status from another session and did a "/etc/rc.d/rc.inet1 wlan0_start" to try and force things along...

Code:

# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0' (DEPRECATED)
eapol_version=1
ap_scan=1
fast_reauth=1
Line: 14 - start of a new network block
scan_ssid=1 (0x1)
ssid - hexdump_ascii(len=8):
    {removed}                          {removed}       
proto: 0x1
mode=0 (0x0)
key_mgmt: 0x2
pairwise: 0x18
group: 0x1e
PSK - hexdump(len=32): [REMOVED]
Line: 27 - start of a new network block
key_mgmt: 0x4
priority=0 (0x0)
Priority group 0
  id=0 ssid='{removed}'
  id=1 ssid=''
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: {removed}
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
ctrl_interface_group=0
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
    {removed}                          {removed}       
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
    {removed}                          {removed}       
Scan requested (ret=0) - scan timeout 5 seconds
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
RX ctrl_iface - hexdump_ascii(len=6):
    53 54 41 54 55 53                                STATUS         
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP

No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
    {removed}                          {removed}       
Scan requested (ret=0) - scan timeout 5 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
l2_packet_receive - recvfrom: Network is down
RTM_NEWLINK: operstate=0 ifi_flags=0x1023 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1023 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
l2_packet_receive - recvfrom: Network is down
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Scan timeout - try to get results
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 5 sec 0 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=8):
    {removed}                          {removed}       
Scan requested (ret=0) - scan timeout 5 seconds
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
State: SCANNING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6

So, still not playing...

wheelsg 07-25-2008 04:11 PM

I know you're trying a lot, but you're in somewhat of the place I was/am. Two questions, do you have a wired connection on this box (whether you're using it or not doesn't necessarily matter yet)? Have you tried to use wifi on the Linux box while the notepad you mentioned is also connected?

You'll remember I mentioned that I have a WPC100 (Linksys - w/ Atheros 5416). I've built (using Alien Bob's build scripts) the madwifi-current (which has the 5416 support) package and then (re)built and installed the wpa_supplicant package (which has to know about the driver, that's why it's built again).

I have similar results to yours (except for the ndiswrapper stuff) when trying to associate and have come up with the following bizarre behavior (which you should try to duplicate, _really_). If I leave the BSSID enabled on my router, I can connect wirelessly if, and only if, I first boot up with a wired connection, then invoke wpa_supplicant (first I try the non-daemonized method, just to see the output (-dd) and know that it will connect). When I see that it will, I exit the routine and daemonize (-Bw) wpa_supplicant. Once it's connected that way I can run dhcpcd on 'ath0' (wlan0 with the madwifi driver attached) and check the result with iwconfig (there's also hardly a timeout waiting for a prompt after invoking the DHCP client daemon). Once I know I have an address, I take 'eth0' down and use the wifi connection. Clunky, I know, but I haven't had time to tweak rc.inet1 so that it won't time out trying to get an IP addy for eth0 when there's no wired connection.

Also, when I disable BSSID, I have the added wrinkle of having to have another wifi connection up and running in order for wpa_supplicant to locate the AP. I've read that there are problems with non-broadcast SSIDs, but I'm not about to have my router broadcast to the neighborhood that it's up and running.

That's the weirdness I face with wifi, it smells a lot like what you seem to be going through. Since you're still using ndiswrapper, I can't be certain, but you might want to give the above a try. Also, I would strongly urge you to go to Alien Bob's build script site and get the '-current' package build script for madwifi. It has support for the Atheros 5416, and you should then be able to use -Dmadwifi when invoking supplicant.

Best of luck,
Geoff.

resaguk 07-26-2008 08:05 AM

Quote:

Originally Posted by wheelsg (Post 3226430)
I know you're trying a lot, but you're in somewhat of the place I was/am. Two questions, do you have a wired connection on this box (whether you're using it or not doesn't necessarily matter yet)? Have you tried to use wifi on the Linux box while the notepad you mentioned is also connected?

Do I have a wired connection for the box? No, unfortunately.

Wifi while connected on notepad? Yes, so far all the times I've been posting here I've had my notepad up and running when I've been trying to get my box to connect.

Quote:

Originally Posted by wheelsg (Post 3226430)
That's the weirdness I face with wifi, it smells a lot like what you seem to be going through. Since you're still using ndiswrapper, I can't be certain, but you might want to give the above a try. Also, I would strongly urge you to go to Alien Bob's build script site and get the '-current' package build script for madwifi.

But isn't Madwifi for Atheros chipsets? As far as I can tell my wifi card is not Atheros based - I *think* it's Realtek 8185 - but this is from memory and I'm not near my box right now to be able to open it up and physically check. (I definitely tried Realtek's drivers, both Windows and Linux with 12.0 but neither worked, perhaps I'll try them again tomorrow...)

Quote:

Originally Posted by wheelsg (Post 3226430)
Best of luck

Thank you!

Iain

storkus 07-26-2008 08:36 AM

Here's your driver: http://rtl-wifi.sourceforge.net/wiki/Main_Page

Mike


All times are GMT -5. The time now is 04:42 AM.