Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

WEP Headache

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
ejfinneran
n00b
n00b
Posts: 18
Joined: Mon Feb 24, 2003 9:42 pm
Contact:
Contact ejfinneran
Website

WEP Headache

  • Quote

Post by ejfinneran » Tue Nov 16, 2004 8:42 pm

I had this working on my Gentoo system last year but I had to rebuild the system over the summer and now I can't get my Linksys WPC-11 (Prism2) card to connect to my school's WEP WIFI Network. I can connect to an unencrypted wlan just fine. Using linux-wlan-ng-0.2.1-pre17, I pop the card in an my logs spit out:

Code: Select all

prism2cs_init: prism2_cs.o: 0.2.1-pre17 Loaded
prism2cs_init: dev_info is: prism2_cs
prism2_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
ident: nic h/w: id=0x8002 1.0.0
ident: pri f/w: id=0x15 0.3.0
ident: sta f/w: id=0x1f 0.8.0
MFI:SUP:role=0x00:id=0x01:var=0x01:b/t=1/1
CFI:SUP:role=0x00:id=0x02:var=0x01:b/t=1/1
PRI:SUP:role=0x00:id=0x03:var=0x01:b/t=1/2
STA:SUP:role=0x00:id=0x04:var=0x01:b/t=1/5
PRI-CFI:ACT:role=0x01:id=0x02:var=0x01:b/t=1/1
STA-CFI:ACT:role=0x01:id=0x02:var=0x01:b/t=1/1
STA-MFI:ACT:role=0x01:id=0x01:var=0x01:b/t=1/1
Prism2 card SN: 99SA01000000
p80211knetdev_hard_start_xmit: Tx attempt prior to association, frame dropped.
linkstatus=ASSOCFAIL (unhandled)
This is my wlancfg-* file:

Code: Select all

#=======USER MIB SETTINGS=============================
# You can add the assignments for various MIB items
#  of your choosing to this variable, separated by 
#  whitespace.  The wlan-ng script will then set each one.
# Just uncomment the variable and set the assignments 
#  the way you want them.

#USER_MIBS="p2CnfRoamingMode=1 p2CnfShortPreamble=mixed"

#=======WEP===========================================
# [Dis/En]able WEP.  Settings only matter if PrivacyInvoked is true
lnxreq_hostWEPEncrypt=true     # true|false
lnxreq_hostWEPDecrypt=true     # true|false
dot11PrivacyInvoked=true        # true|false
dot11WEPDefaultKeyID=0          # 0|1|2|3
dot11ExcludeUnencrypted=true    # true|false, in AP this means WEP is required.

# If PRIV_GENSTR is not empty, use PRIV_GENTSTR to generate 
#  keys (just a convenience)
# add-ons/ in the tarball contains other key generators.
PRIV_GENERATOR=/sbin/keygen     # nwepgen, Neesus compatible
PRIV_KEY128=false               # keylength to generate
PRIV_GENSTR=""

# or set them explicitly.  Set genstr or keys, not both.
dot11WEPDefaultKey0=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
dot11WEPDefaultKey1=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX              #         xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
dot11WEPDefaultKey2=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX              #  e.g.   01:20:03:40:05   or
dot11WEPDefaultKey3=XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX              #         01:02:03:04:05:06:07:08:09:0a:0b:0c:0d
#=======SELECT STATION MODE===================
IS_ADHOC=n                      # y|n, y - adhoc, n - infrastructure

#======= INFRASTRUCTURE STATION  ===================
# What kind of authentication?
AuthType="sharedkey"            # opensystem | sharedkey (requires WEP)

#======= ADHOC STATION ============================
BCNINT=100                      # Beacon interval (in Kus)
CHANNEL=6                       # DS channel for BSS (1-14, depends 
                                #   on regulatory domain)
BASICRATES="2 4"                # Rates for mgmt&ctl frames (in 500Kb/s)
OPRATES="2 4 11 22"             # Supported rates in BSS (in 500Kb/s)
(keys changed of course)
In my attempts to debug this I ran iwconfig which shows:

Code: Select all

wlan0     IEEE 802.11-DS  ESSID:"correct_essid" Nickname:"correct_essid"          Mode:Auto  Frequency:2.412 GHz  Access Point: 00:00:00:00:00:00   
          Bit Rate:2 Mb/s   Tx-Power:2346 dBm   
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
          Link Quality=0/92  Signal level=-90 dBm  Noise level=-90 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
My concern is mailing that it shows the Encryption key off despite it being enabled in my wlancfg file. But maybe iwconfig doesn't read linux-wlan-ng devices very well.

This laptop ran Fedora Core 2 a few weeks ago and it was able to connect without a problem so I know its not a hardware problem.

Any pointers on where to go from here?
Top
cartpullerjack
Apprentice
Apprentice
Posts: 185
Joined: Sun Nov 16, 2003 5:19 am

  • Quote

Post by cartpullerjack » Tue Dec 28, 2004 2:30 am

iwconfig doesn't work fully with linux-wlan-ng. No matter whether you're using encryption or not, iwconfig will always show it off.

I only use iwconfig to figure out if i'm actually connected to an AP, and I'm pretty sure that's all its good for wrt linux-wlan-ng.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic