Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: prism2.sh syntax error?/< Next Oldest | Next Newest >
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: Mar. 07 2006,23:05 QUOTE

I am adding this topic to track this issue in the network forum.  I have been struggling with getting my wireless card working with DSL 2.0 and 2.1 for a while and below is what I found.

Configuring my wireless card D-Link DWL-650 in DSL2.1b, I found what appears to be a syntax error in /usr/local/bin/prism2.sh.  Is this a problem with the script?

Executing the line
wlanctl-ng "$1" lnxreq_wlansniff enable=false channel "$2"

bash-2.05b# wlanctl-ng "wlan0" lnxreq_wlansniff enable=false channel "6"
channel="argument_item_data_is_missing"
message=lnxreq_wlansniff
 enable=false
 channel=argument_item_data_is_missing
 prismheader=no_value
 wlanheader=no_value
 keepwepflags=no_value
 stripfcs=no_value
 packet_trunc=no_value
 resultcode=no_value

The channel is not assinged channel=argument_item_data_is_missing

Changing the line to channel="6" assigns the channel

bash-2.05b# wlanctl-ng "wlan0" lnxreq_wlansniff enable=false channel="6"
message=lnxreq_wlansniff
 enable=false
 channel=6
 prismheader=no_value
 wlanheader=no_value
 keepwepflags=no_value
 stripfcs=no_value
 packet_trunc=no_value
 resultcode=invalid_parameters
bash-2.05b#

You also notice the resultcode=invalid_parameters but I have no idea what that means.  

The next line of the script
wlanctl-ng "$1" p2req_channel_info_results channel "$2

bash-2.05b# wlanctl-ng "wlan0" p2req_channel_info_results channel "6"
channel="argument_item_data_is_missing"
message=p2req_channel_info_results
 channel=argument_item_data_is_missing
 resultcode=no_value
 avgnoiselevel=no_value
 peaknoiselevel=no_value
 bssactive=no_value
 pcfactive=no_value
bash-2.05b#

Same error channel="argument_item_data_is_missing"

modifying the line

bash-2.05b# wlanctl-ng "wlan0" p2req_channel_info_results channel="6"
message=p2req_channel_info_results
 channel=6
 resultcode=not_supported
 avgnoiselevel=no_value
 peaknoiselevel=no_value
 bssactive=no_value
 pcfactive=no_value
bash-2.05b#

assigns the channel.

Addition note:

wlanctl-ng "$1" dot11req_mibset mibattribute=dot11WEPDefaultKey0="$4"

The format of the WEP must be like "12:34:56:78:90"

The results of the configuration:

bash-2.05b# ping damnsmalllinux.org
PING damnsmalllinux.org (65.254.46.177): 56 data bytes
64 bytes from 65.254.46.177: icmp_seq=0 ttl=46 time=43.3 ms
64 bytes from 65.254.46.177: icmp_seq=1 ttl=46 time=40.7 ms
64 bytes from 65.254.46.177: icmp_seq=2 ttl=46 time=53.8 ms
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Mar. 08 2006,05:06 QUOTE

dtf, excellent find. Fixing this now. Thanks!
Back to top
Profile PM WEB 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: Mar. 08 2006,14:41 QUOTE

Thanks dtf! My netgear USB wireless is working anyway, but couldn't get WEP to work before.

--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
hseaver Offline





Group: Members
Posts: 40
Joined: Feb. 2006
Posted: Mar. 14 2006,21:26 QUOTE

Quote (roberts @ Mar. 08 2006,00:06)
dtf, excellent find. Fixing this now. Thanks!

Any hope that this will fix the problem I reported earlier of having "no wireless card detected" despite pcmcia correctly identifying it and modules being loaded?
   Although I get no error in dmesg when I modprobe either prism2_cs or hostap_cs for this card, both of which work very well for it in other machines.
Back to top
Profile PM 
dtf Offline





Group: Members
Posts: 196
Joined: Nov. 2005
Posted: Mar. 15 2006,03:37 QUOTE

I would suggest you try it and see if it helps.  I simply cat'ed the script out and executed each line substituding the $1, $2 etc with the values.  I could see from ifconfig that my card was associated with the interface wlan0 ($1), my network is setup to use channel 6 ($2), the SID is $3 and WEP is $4.  Remember when enterring the WEP that you need the insert a colon ':' between every two hex numbers.  Once configured I might of re-request dhcp (I don't remember).
Back to top
Profile PM 
5 replies since Mar. 07 2006,23:05 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: prism2.sh syntax error?/

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code