Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RaLink RT2561/RT61.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
justincataldo
Guru
Guru


Joined: 15 Jun 2005
Posts: 376
Location: Australia

PostPosted: Thu Jan 04, 2007 1:24 pm    Post subject: Reply with quote

Yeah, mine is doing the same (randomly dropping the connection) using the ralink-rt61 drivers. It's weird. Even when the machine is only 2m from the wireless modem!
Back to top
View user's profile Send private message
Pluvius
Apprentice
Apprentice


Joined: 15 Oct 2002
Posts: 167
Location: Phoenix, Arizona

PostPosted: Fri Feb 02, 2007 11:23 pm    Post subject: Reply with quote

All,

I followed the instructions here but still have to start my eth.ra0 manually each time. It won't come up automaticallt on start-up. I have it loaded in rc-update to start at boot but I don't see it during the init scripts (displayed during start-up). I've disabled net.eth0 in coldplug and updated /etc/conf.d/net.conf and /etc/Wireless/RT61STA/rt61sta.dat as indicated in the posts here with my ESSID, TKIP, and key.

Here is a snippet of my /etc/conf.d/net file

    config_ra0=( "dhcp" )
    # dhcp_ra0="nodns nontp nonis"
    # essid_ra0="westonlan"
    # mode_ra0="managed"
    # channel_ra0="9"
    # key_westonlan="ebe3-a27b-5fb9-1d38-f50d-0b06-f4"
    postup() {
    if [ ra0 == ${IFACE} ]; then
    ifconfig ra0 mtu 1300
    fi
    }
    modules=( "!iwconfig" "!wpa_supplicant" )


I tried entering the AP info here, but it didn't work

I've removed the rt61 module from kernel-2-6, assuming you didn't want it loaded, but I expect that the module is getting loaded automatically.

I know I'm close, but I can't see what I am mising.Any suggestions?

Pluvius
Back to top
View user's profile Send private message
Pluvius
Apprentice
Apprentice


Joined: 15 Oct 2002
Posts: 167
Location: Phoenix, Arizona

PostPosted: Sat Feb 03, 2007 1:36 am    Post subject: Reply with quote

Sorry,

A little more info... I used the ralink-rt61 build and have a Linksys WMP54G wireless card. I'm using WEP encryption with an open authentication. I have to use iwconfig commands to manually load ESSID, and key each time I start-up. Once I do, I get excellent throughput on the wireless link. It appears that the wireless card is not being activated at start-up and not reading the /etc/Wireless/RT61STA/rt61sta.dat file at all.

Regards,
Pluvius
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 326
Location: Belgium

PostPosted: Wed Feb 14, 2007 5:10 pm    Post subject: Struggling with a similar problem - nothing work anymore Reply with quote

I also tried to configure my router with WPA-PSK. No problem with various Windows PCs with wireless connection. No problem with HP OfficeJet that is wireless, nor with Slimserver (sound streaming device), also wireless.

But my PC with a RT61 wireless card (that was working for weeks OK with an open router) refuses to work. Modified the rt61sta.dat file as indicated, modified the /etc/conf.d/net as indicated, tried without DHCP (no success).

Re-emerge the modules, tried everything again. Nothing.

Put the router back without protection and rebooted the PC (after having updated rt61sta.dat again). Now the PC hangs during the booting process ("running dhcpcd" on the problematic interface). I am completely stuck.

Any suggestion will be appreciated.
Back to top
View user's profile Send private message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Wed Feb 14, 2007 8:27 pm    Post subject: Reply with quote

How are the settings for Ad-Hoc mode? Gives a Manual für the rt61sta.dat and there vars?
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 326
Location: Belgium

PostPosted: Thu Feb 15, 2007 6:42 am    Post subject: Problems solved (sort of) Reply with quote

I continued to struggle with this yesterday.

My final conclusions:
  • I got everything working (as described in the various HOWTO-s in the Gentoo Wiki), but only if I switch off MAC filtering on my Linksys WRT300N router. When MAC filtering is on, either the PC does not get an IP address (time-out) or the machine just hangs on the DHCP request.
  • The Ralink-RT61 driver seems to have problems handling short interruptions of the connection (like restarting the router after having updated some parameters). There were a number of cases where the computer just hanged and a hard reboot was the only way to get out.
So in short - it now works, be it without MAC filtering (but with WPA-PSK)
Back to top
View user's profile Send private message
forkboy
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 200
Location: Blackpool, UK

PostPosted: Thu Feb 15, 2007 6:13 pm    Post subject: Reply with quote

Thanks, kdvgent I finally got my card working with WPA by disabling MAC filtering. Its been bugging me for ages I never thought of trying that.
Back to top
View user's profile Send private message
Heinzelmännchen
Apprentice
Apprentice


Joined: 11 Mar 2004
Posts: 179
Location: MV, Germany

PostPosted: Thu Feb 15, 2007 8:17 pm    Post subject: Reply with quote

hi... web encryption works in ad-hoc mode, but WPANONE doesn't.

here are my settings:
Code:

[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
SSID=District
NetworkType=Adhoc
Channel=1
AuthMode=WPANONE
EncrypType=TKIP
DefaultKeyID=1
Key1Type=0
Key1Str=0123456789
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=abcdefgh
TxBurst=0
PktAggregate=0
WmmCapable=0
APSDCapable=0
APSDAC=0;0;0;0
BGProtection=0
IEEE80211H=0
TxRate=0
RTSThreshold=2347
FragThreshold=2346
RoamThreshold=75
PSMode=CAM
TxPreamble=0
FastRoaming=0


these settings use WPAPSK or Key1Str?
_________________
Gute Dinge, will Weile haben!
Back to top
View user's profile Send private message
m707
Tux's lil' helper
Tux's lil' helper


Joined: 31 Oct 2003
Posts: 121
Location: Germany

PostPosted: Wed Feb 21, 2007 10:04 am    Post subject: Reply with quote

Pluvius wrote:

ifconfig ra0 mtu 1300


Sorry, but I don't understand why you do this.

<AFAIK>
The payload for 802.11 is at 2304 byte + 64 byte (wlan overhead) = 2368 byte/frame.

If you reduce the MTU to 1300 byte you will cut (not use) about 1000 byte / paket from every single paket. As the TCP/IP (and other) headers are fixed in size, the 1000 byte will have to be taken from the pure payload.
</AFAIK>

Therefore, IMHO cutting the mtu to 1300 on the connection from you NIC to the AP should reduce the possible speed on this line, shouldn't it?

If you are afraid of hurting the 1500 ethernet frame size limit (for dsl 1452 + overhead), IMHO your router should handle this by cutting the packets it received via Wlan to a size matching to ethernet needs before passing it to the dsl socket.
_________________
bye maik
Back to top
View user's profile Send private message
kdvgent
Guru
Guru


Joined: 29 Sep 2004
Posts: 326
Location: Belgium

PostPosted: Sun Mar 25, 2007 9:25 am    Post subject: ralink-rt61 does not compile after kernel update Reply with quote

Today I upgraded my kernel to 2.6.20-r4.

When afterwards I try to emerge my network card driver again, the emerge failed. The correct kernel version is detected but then I get a weird error message, saying that a 2.6.20-r2 related directory does not exist (while it still exists on my machine).

Anybody any idea what went wrong?

The emerge log:
Quote:
cat /var/tmp/portage/net-wireless/ralink-rt61-1.1.0.0/temp/build.log
* This profile has not been tested thoroughly and is not considered to be
* a supported server profile at this time. For a supported server
* profile, please check the Hardened project (http://hardened.gentoo.org).

* This profile is merely a convenience for people who require a more
* minimal profile, yet are unable to use hardened due to restrictions in
* the software being used on the server. This profile should also be used
* if you require GCC 4.1 or Glibc 2.4 support. If you don't know if this
* applies to you, then it doesn't and you should probably be using
* Hardened, instead.

* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found sources for kernel version:
* 2.6.20-gentoo-r4
* Checking for suitable kernel configuration options... [ ok ]
>>> Unpacking source...
>>> Unpacking RT61_Linux_STA_Drv1.1.0.0.tar.gz to /var/tmp/portage/net-wireless/ralink-rt61-1.1.0.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/ralink-rt61-1.1.0.0/work/RT61_Linux_STA_Drv1.1.0.0 ...
* Applying rt61-wireless-ext-v21.diff ... [ ok ]
* Preparing rt61 module
make -C /lib/modules/2.6.20-gentoo-r2/build SUBDIRS=/var/tmp/portage/net-wireless/ralink-rt61-1.1.0.0/work/RT61_Linux_STA_Drv1.1.0.0/Module modules
make: *** /lib/modules/2.6.20-gentoo-r2/build: No such file or directory. Stop.
make: *** [all] Error 2

!!! ERROR: net-wireless/ralink-rt61-1.1.0.0 failed.
Call stack:
ebuild.sh, line 1614: Called dyn_compile
ebuild.sh, line 971: Called qa_call 'src_compile'
environment, line 3989: Called src_compile
ralink-rt61-1.1.0.0.ebuild, line 42: Called linux-mod_src_compile
linux-mod.eclass, line 511: Called die

!!! Unable to make .
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-wireless/ralink-rt61-1.1.0.0/temp/build.log'.
Back to top
View user's profile Send private message
Corpse Fiend
n00b
n00b


Joined: 21 Jun 2005
Posts: 12

PostPosted: Thu Apr 19, 2007 2:07 pm    Post subject: Reply with quote

Please post
Code:
 ls -l /usr/src
Back to top
View user's profile Send private message
MixedSoul
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2006
Posts: 96

PostPosted: Fri May 11, 2007 10:20 pm    Post subject: Reply with quote

I'm using rt61sta.dat to configure ralink, how can configure more than one network in this file?
How do i connect to a WPA network with authentication and a certificate?

thx in advance! :D
Back to top
View user's profile Send private message
random-feed
n00b
n00b


Joined: 12 May 2005
Posts: 20

PostPosted: Thu May 24, 2007 7:03 pm    Post subject: Reply with quote

I am using iwconfig/iwpriv commands to set up the wireless interface, and it works just fine in Adhoc mode with net-wireless/rt61-1.1.0_beta2. However, when I try to add it to a bridge, I'm getting tons of duplicate packets. No loops on the network, and STP is on, but still... please see https://forums.gentoo.org/viewtopic-t-561261.html and let me know if there's anything that can be done.

Thanks.
_________________
If in doubt, mumble.
Back to top
View user's profile Send private message
gerardo
Apprentice
Apprentice


Joined: 05 Feb 2004
Posts: 228
Location: Belgium

PostPosted: Sun May 27, 2007 7:44 pm    Post subject: rt61 refuses to compile on 2.6.22-rc2-mm1 Reply with quote

This is what I get when I emerge net-wireless/rt61-1.1.0_beta2 on a Intel Core 2 Duo with amd64-profile with a Edimax EW-7128g (RaLink RT2561/RT61 802.11g PCI chipset)

Code:
 [size=9]# LC_ALL=C emerge rt61
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-wireless/rt61-1.1.0_beta2 to /
 * rt61-1.1.0-b2.tar.gz MD5 ;-) ...                                                                                                    [ ok ]
 * rt61-1.1.0-b2.tar.gz RMD160 ;-) ...                                                                                                 [ ok ]
 * rt61-1.1.0-b2.tar.gz SHA1 ;-) ...                                                                                                   [ ok ]
 * rt61-1.1.0-b2.tar.gz SHA256 ;-) ...                                                                                                 [ ok ]
 * rt61-1.1.0-b2.tar.gz size ;-) ...                                                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                 [ ok ]
 * checking rt61-1.1.0-b2.tar.gz ;-) ...                                                                                               [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.22-rc2-mm1/build
 * Found sources for kernel version:
 *     2.6.22-rc2-mm1
 * Checking for suitable kernel configuration options...                                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking rt61-1.1.0-b2.tar.gz to /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2 ...
 * Preparing rt61 module
make[1]: Entering directory `/usr/src/linux-2.6.22-rc2-mm1'
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/mlme.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/connect.o
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'RT61_open':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:405: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_resume':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:1000: warning: ignoring return value of 'pci_enable_device', declared with attribute warn_unused_result
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c: In function 'rt61_init_module':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_main.c:1044: warning: implicit declaration of function 'pci_module_init'
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/sync.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/assoc.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/auth.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/auth_rsp.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.o
  CC [M]  /var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/sanity.o
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'REPORT_ETHERNET_FRAME_TO_LLC_WITH_NON_COPY':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:127: warning: assignment makes integer from pointer without a cast
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'REPORT_AGGREGATE_ETHERNET_FRAME_TO_LLC_WITH_NON_COPY':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:228: warning: assignment makes integer from pointer without a cast
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'RTMPHandleRxDoneInterrupt':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:477: error: 'struct sk_buff' has no member named 'mac'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c: In function 'RTMPCheckDHCPFrame':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:4318: warning: unused variable 'dest_port'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:4317: warning: unused variable 'is_udp'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:4316: warning: unused variable 'is_ipv4'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.c:4315: warning: unused variable 'is_ip'
make[3]: *** [/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_data.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c: In function 'RTMPReadParametersFromFile':
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 3 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 4 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 5 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 6 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 7 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 8 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 3 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 4 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 5 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 6 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 7 has type 'u8 *'
/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module/rtmp_init.c:2486: warning: format '%02x' expects type 'unsigned int *', but argument 8 has type 'u8 *'
make[2]: *** [_module_/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/work/rt61-1.1.0-b2/Module] Error 2
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.22-rc2-mm1'
rt61.ko failed to build!
make: *** [module] Error 1

!!! ERROR: net-wireless/rt61-1.1.0_beta2 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  rt61-1.1.0_beta2.ebuild, line 39:   Called linux-mod_src_compile
  linux-mod.eclass, line 516:   Called die

!!! Unable to make  KERNDIR=/usr/src/linux KERNOUT=/lib/modules/2.6.22-rc2-mm1/build clean module.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-wireless/rt61-1.1.0_beta2/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'[/size]

BTW, I changed the original ebuild as CONFIG_NET_RADIO is no longer in .config. Here's the part of the rt61-ebuild:
Code:
# CONFIG_CHECK="NET_RADIO"
# ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."

CONFIG_CHECK="WIRELESS_EXT"
ERROR_WIRELESS_EXT="${P} requires support for Wireless Extensions (CONFIG_WIRELESS_EXT)."


I suppose something changed in this recent kernel?

I tried rt2x00-git from the sunrise overlay (as CVS of rt2x00 in portage is deprecated).
In that case, I get errors on net-wireless/mac80211-7.1.0:
(this is only the first error, there's an awful load of errors on ieee80211_ioctl.c)
Code:
/var/tmp/portage/net-wireless/mac80211-7.1.0/work/mac80211-7.1.0-ht/compatible/net/mac80211/ieee80211_ioctl.c:174: error: 'const struct ieee80211_ops' has no member named 'passive_scan'

_________________
Windoze : Plug and Pay...
Back to top
View user's profile Send private message
MixedSoul
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2006
Posts: 96

PostPosted: Wed May 30, 2007 1:58 am    Post subject: Reply with quote

I'm trying to patch wpa_supplicant with the instructions that came with ralink-rt61 driver and i'm getting undefined reference to...
well.. to just about everything :!:
LoL :oops:

Could anyone write the exact steps to patch wpa_supplicant so it supports ralinks driver, please?!
I really need this so i can connect to the campus wireless, which uses WPA-PEAP!
Back to top
View user's profile Send private message
MixedSoul
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2006
Posts: 96

PostPosted: Thu May 31, 2007 12:40 am    Post subject: Reply with quote

Ok... a managed to compile successfully using wpa_supplicant-0.6.0, the only thing i did was changing the .config by adding CONFIG_DRIVER_RALINK=y
then:
Code:
ebuild /usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-0.6.0.ebuild digest


but.. when i:
Code:
emerge wpa_supplicant


it doesn't build support for ralink :!:

What am i doing wrong?!

thanks in advance!
Back to top
View user's profile Send private message
MixedSoul
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2006
Posts: 96

PostPosted: Thu May 31, 2007 5:09 pm    Post subject: Reply with quote

Ok, a managed to build wpa_supplicant with support for ralink by adding
Code:
echo "CONFIG_DRIVER_RALINK=y" >> .config


to /usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-0.6.0.ebuild

and then:
Code:
ebuild /usr/portage/net-wireless/wpa_supplicant/wpa_supplicant-0.6.0.ebuild digest && emerge wpa_supplicant


This is probably the dirty way of doing it.. but it seems to work and,for now, that's all that matters :!: :D
Back to top
View user's profile Send private message
faugusztin
n00b
n00b


Joined: 15 May 2005
Posts: 47

PostPosted: Wed Jun 13, 2007 5:28 pm    Post subject: Access point ? Reply with quote

Hi,
i just bought a D-Link DWL-G510 (rev. C2) and it looks like i did a mistake by buying it. I tried all possible drivers (net-wireless/rt61, net-wireless/ralink-rt61, net-wireless/rt2x00-git), but i'm unable to switch it to master mode to act as access point. Even worse, with all except ralink-rt61 it didn't returned anything with "iwlist wlan0 channel" command (it said 0 channels).

Is this a hardware limitation ? If yes, then what PCI card should i buy for acting as a AP (i need to have it in my PC, i don't want to have external router) ?
Or how else should i connect 2 PC's (a media PC which should act as AP) and a notebook (which should act as a client).

Thanks.
Back to top
View user's profile Send private message
micmac
l33t
l33t


Joined: 28 Nov 2003
Posts: 992

PostPosted: Wed Jun 13, 2007 6:15 pm    Post subject: Reply with quote

@faugusztin: There's a little shimmer of light at the end of the tunnel, meaning that a working version of rt2x00 probably makes it into the official kernel tree not too far into the future.

For now I have switched to ndiswrapper to get my rt61 cards going. All the other possible drivers are way too unreliable for my taste. Maybe ndiswrapper works for you, too. I don't know if ndiswrapper can make the device act as an AP, though (never tried).

mic

P.S.: I have an Conceptronic C54Ri card running with ndiswrapper-1.46. It's very reliable using the latest WHQL driver from Conceptronic. I'm even using kernel 2.6.21 with the NO_HZ stuff.
Back to top
View user's profile Send private message
username234
Guru
Guru


Joined: 09 May 2007
Posts: 330

PostPosted: Fri Jun 22, 2007 1:48 pm    Post subject: Reply with quote

m707 wrote:
Pluvius wrote:

ifconfig ra0 mtu 1300


Sorry, but I don't understand why you do this.

<AFAIK>
The payload for 802.11 is at 2304 byte + 64 byte (wlan overhead) = 2368 byte/frame.

If you reduce the MTU to 1300 byte you will cut (not use) about 1000 byte / paket from every single paket. As the TCP/IP (and other) headers are fixed in size, the 1000 byte will have to be taken from the pure payload.
</AFAIK>

Therefore, IMHO cutting the mtu to 1300 on the connection from you NIC to the AP should reduce the possible speed on this line, shouldn't it?

If you are afraid of hurting the 1500 ethernet frame size limit (for dsl 1452 + overhead), IMHO your router should handle this by cutting the packets it received via Wlan to a size matching to ethernet needs before passing it to the dsl socket.


I'm not sure why they are setting it to 1300, I've set mine to 1500 and do not have any communication problems.
Back to top
View user's profile Send private message
jakob-andreas
n00b
n00b


Joined: 19 Aug 2005
Posts: 53
Location: East-Germany

PostPosted: Thu Jul 19, 2007 8:35 pm    Post subject: Reply with quote

good evening together,
i bought a wlan-card with the ralink chipset rt61. its a longshine lcs-8031m. with the rt61-driver in portage i can create a connection to my router, but only unencrypted. when im trying to use wpapsk with tkip i get no connection. i think my psk is wrong because i only know the ascii word. i told rt61sta.dat to use the passphrase i also gave the router - and nothing happens. so i tried to translate the ascii to hex, with the same result. can anybody tell me what im doing wrong?
my /etc/conf.d/net:
Code:

modules=("!iwconfig" "!wpa_supplicant")
config_eth0=("192.168.1.5 netmask 255.255.0.0 broadcast 192.168.255.255")
config_ippp0=("10.0.0.1 netmask 255.0.0.0 brodcast 10.0.0.255")
routes_ippp0=("default gw 10.0.0.1")
config_ra0=("192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255")


my /etc/Wireless/RT61STA/rt61sta.dat:
Code:

[Default]
CountryRegion=0
WirelessMode=0
SSID=<my_ssid>
NetworkType=Infra
Channel=6
AuthMode=WPAPSK
EncrypType=TKIP
WPAPSK=<my ascii passphrase>



ps: under winxp the card works fine with these values!
Back to top
View user's profile Send private message
username234
Guru
Guru


Joined: 09 May 2007
Posts: 330

PostPosted: Fri Jul 20, 2007 12:58 pm    Post subject: Reply with quote

I've never used WPA encryption (some of my wireless devices don't support it), but looking over the drivers, it looks like might need the wpa_supplicant module.

So, if you want to experiment....

in /etc/conf.d/net change the line:
Code:
modules=("!iwconfig" "!wpa_supplicant")

to
Code:
modules=("!iwconfig" "wpa_supplicant")

and then at the command prompt type
Code:
emerge net-wireless/wpa_supplicant


then reboot and see if it works.
Back to top
View user's profile Send private message
jakob-andreas
n00b
n00b


Joined: 19 Aug 2005
Posts: 53
Location: East-Germany

PostPosted: Fri Jul 20, 2007 2:27 pm    Post subject: Reply with quote

i did what you said and this is the result:
Code:

 * Stopping ra0
 *   Loading networking modules for ra0
 *     modules: apipa arping ccwgroup macchanger macnet rename iwconfig wpa_supplicant essidnet ipppd iptunnel ifconfig iproute2 ip6to4 pppd system udhcpc
 *   Bringing down ra0
 *     Shutting down ra0 ...                                                                                                                                                [ ok ]
 *     Stopping wpa_cli on ra0 ...                                                                                                                                          [ ok ]
 *     Stopping wpa_supplicant on ra0 ...                                                                                                                                   [ ok ]
 * Starting ra0
 *   Loading networking modules for ra0
 *     modules: apipa arping ccwgroup macchanger macnet rename wpa_supplicant essidnet ipppd iptunnel iproute2 ip6to4 pppd system udhcpc
 *       wpa_supplicant provides wireless
 *       ipppd provides isdn
 *       iproute2 provides interface
 *       pppd provides ppp
 *       udhcpc provides dhcp
 *   Configuring ra0 for MAC address <my adress> ...                                                                                                                  [ ok ]
 *   Starting wpa_supplicant on ra0 ...
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported                                                                                                          [ ok ]th param 5 value 0x1 -
 *   Starting wpa_cli on ra0 ...                                                                                                                                            [ ok ]
 *     Waiting for association                                                                                                                                              [ ok ]
 *     Backgrounding ...

i tried all drivers the manualpage says are supported. noone works for me. any other ideas?
Back to top
View user's profile Send private message
username234
Guru
Guru


Joined: 09 May 2007
Posts: 330

PostPosted: Fri Jul 20, 2007 3:35 pm    Post subject: Reply with quote

okay, so that didn't work.

If you want you can go ahead and change the line in /etc/conf.d/net back to what it was.

Also, if you want to remove wpa_supplicant use the the command
emerge -C net-wireless/wpa_supplicant.

You could also try the hex version of your pass phrase (your router should have it listed somewhere, Windows might have it listed too, but it's much harder to get at.)

and if all else fails:
you can install the ndiswrapper and the the Windows version of the drivers, and run your card that way.
Back to top
View user's profile Send private message
jakob-andreas
n00b
n00b


Joined: 19 Aug 2005
Posts: 53
Location: East-Germany

PostPosted: Sat Jul 21, 2007 11:41 am    Post subject: Reply with quote

ok, i tryed to install wpa_supplicant with a ralink-driver. i patched the version wpa_supplicant-0.5.4 with the ralink-driver, booted my system and afterwards i started wpa_supplicant:
Code:

/home/jakob/wpa_supplicant-0.5.4/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i ra0 -D ralink -dd

sometimes it seems to work, but i only get a connection to mac adress 00:00:00:00:00:00 or wpa_supplicant scans every 5 seconds, finds the ssid but cant connect!
this is my /etc/wpa_supplicant/wpa_supplicant.conf:
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
network={
   ssid="<my ssid>"
   scan_ssid=1
   key_mgmt=WPA-PSK
   proto=WPA
   pairwise=TKIP
   group=TKIP
   psk="<my psk>"
}

the hex-version of my passphrase i tried, too. no change!
ok, ill use ndiswrapper and tell u if it works better!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum