prism2.sh syntax error?/Forum: Networking Topic: prism2.sh syntax error?/ started by: dtf Posted by dtf on Mar. 07 2006,23:05
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 Posted by roberts on Mar. 08 2006,05:06
dtf, excellent find. Fixing this now. Thanks!
Posted by doobit on Mar. 08 2006,14:41
Thanks dtf! My netgear USB wireless is working anyway, but couldn't get WEP to work before.
Posted by hseaver on Mar. 14 2006,21:26
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. Posted by dtf on Mar. 15 2006,03:37
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).
Posted by doobit on Mar. 15 2006,13:00
Did you try it yet with the GUI in dsl-2.3rc1? I was wondering if the GUI writes the strings to the script in the correct order. It does not seem to put the colons in the WEP. I am able to connect anyway, but it still seems to be scanning for the channel. The ssid is put in where it should be however.
|