Opened 5 years ago

Last modified 5 weeks ago

#15771 new enhancement

Ralink...wireless not working

Reported by: bruno Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Drivers/Network/ralinkwifi Version: R1/beta1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by bruno)

My internal usb WLAN does not work yet Haiku 32bit nightly hrev:46582...

Ralink: Vendor: ID 148F USB: 0DB0:6877 Micro Star International RT2573 Ralink: RT2501USB/RT2571W (RT73) devices

Attachments (12)

AXIO syslog 1 March (352.7 KB ) - added by bruno 5 years ago.
Axioo_listdev (4.1 KB ) - added by bruno 5 years ago.
about.png (62.3 KB ) - added by bruno 2 years ago.
Deskbar (28.4 KB ) - added by bruno 2 years ago.
NetwPref.png (47.1 KB ) - added by bruno 2 years ago.
syslog (346.9 KB ) - added by bruno 2 years ago.
Bitmap Clip 2 (22.2 KB ) - added by bruno 2 years ago.
ralinkwifi.png (94.9 KB ) - added by bruno 2 years ago.
RalinkWIFI.txt (6.3 KB ) - added by bruno 2 years ago.
oEmS.png (96.9 KB ) - added by bruno 2 years ago.
0db0_6877wifi.png (33.2 KB ) - added by bruno 2 years ago.
syslog_32bit_nov_2024 (351.2 KB ) - added by bruno 5 weeks ago.

Download all attachments as: .zip

Change History (32)

by bruno, 5 years ago

Attachment: AXIO syslog 1 March added

by bruno, 5 years ago

Attachment: Axioo_listdev added

comment:1 by bruno, 4 years ago

It is a USB wireless card which is not yet supported on Haiku

comment:2 by vidrep, 2 years ago

I have a D-Link USB wireless with Ralink 2571W chipset here for testing.

07d1:3c03 "D-Link System" "AirPlus G DWL-G122 Wireless Adapter(rev.C1) [Ralink RT2571W]" ver. 0001

comment:3 by bruno, 2 years ago

Haiku 32bit Hrev.:56434

After installing the binary firmware modules drivers my card is recognized,finally. and is possible to choose from the network preferences.

But it does not connect to the Network properly.

I use the internal USB-WIFI card (Ralink: Vendor: ID 148F USB: 0DB0:6877 Micro Star International RT2573 Ralink RT2501USB/RT2571W (RT73) devices)

by bruno, 2 years ago

Attachment: about.png added

by bruno, 2 years ago

Attachment: Deskbar added

by bruno, 2 years ago

Attachment: NetwPref.png added

by bruno, 2 years ago

Attachment: syslog added

comment:5 by bruno, 2 years ago

So the GUI for WIFI does not work!?

in reply to:  5 comment:6 by korli, 2 years ago

Replying to bruno:

So the GUI for WIFI does not work!?

What do you mean with 'does not work'?

comment:7 by bruno, 2 years ago

It does not save the ssid and the password and will not close or abort. It does not automatically connect and save!

comment:8 by bruno, 2 years ago

with hrev: 56451 GUI works (abort and close window)

wifi firmware: ralink_wifi_firmwares-2015_02_11-2 from repository system is already installed. Nothing to do.

by bruno, 2 years ago

Attachment: Bitmap Clip 2 added

comment:9 by bruno, 2 years ago

Now the GUI works fine, but I cannot connect! Incorrect password!?

I am sure the password is ok.. what happened here?

comment:10 by Starcrasher, 2 years ago

The driver didn't right work after the importation from OpenBSD. Apparently, even if you manage to connect to an open spot, there are transfers errors. Unfortunately, waddlesplash doesn't dispose of a device to do the debugging. So it was left as it was.

comment:11 by Starcrasher, 2 years ago

From the commit of hrev56231

ralinkwifi: Import USB modules.
Not entirely sure if these are working as they were not really tested.
But they don't seem to cause KDLs at least, so the worst that happens
is that the WiFi devices fail to work.
freebsd_network: Implement USB routines needed by Ralink USB modules.
Tested by nephele with a RT2573. The device starts and scans for networks,
but hits some USB errors probably related to buffer sizing which I'm
not quite sure what the cause of could be. More work (by someone who
owns these devices) may be required.

Note that some modules like the one for RT2573 are imported from OpenBSD while some others are imported from FreeBSD.

comment:12 by waddlesplash, 2 years ago

No, all Ralink drivers come from FreeBSD. Some may indirectly come from OpenBSD but the versions I imported are from FreeBSD.

by bruno, 2 years ago

Attachment: ralinkwifi.png added

by bruno, 2 years ago

Attachment: RalinkWIFI.txt added

comment:14 by bruno, 2 years ago

Hello all, new output: seems something works!

~> cat /var/log/syslog | grep ralinkwifi
KERN: [ralinkwifi] (rum) MAC/BBP RT2573 (rev 0x2573a), RF RT2528
KERN: : KERN: [ralinkwifi] 11b rates: KERN: 1Mbps 2Mbps 5.5Mbps 11Mbps
KERN: : [ralinkwifi] 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18MbpsKERN:  24MbpsKERN:  36MbpsKERN:  48MbpsKERN:  54MbpsKERN: 
KERN: [ralinkwifi] ralinkwifi: /dev/net/ralinkwifi/0
KERN: [net/ralinkwifi/0] ieee80211_node_vattach: init 2 auth 12 run 20 probe 2
KERN: [net/ralinkwifi/0] ieee80211_vap_attach: STA parent  flags 0x40046000 flags_ext 0x402
KERN: [net/ralinkwifi/0] ieee80211_alloc_node 0x81708000<00:24:21:47:9f:5a> in station table
KERN: [net/ralinkwifi/0] [00:24:21:47:9f:5a] ieee80211_alloc_node: inact_reload 2
KERN: ralinkwifi: init_driver(0xde8a8368)
KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/net/ralinkwifi
KERN: [net/ralinkwifi/0] compat_open(0x2)
KERN: [net/ralinkwifi/0] ieee80211_init
KERN: [net/ralinkwifi/0] start running, 0 vaps running
KERN: [net/ralinkwifi/0] ieee80211_start_locked: up parent 
KERN: [net/ralinkwifi/0] start running, 1 vaps running
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
KERN: /dev/net/ralinkwifi/0: link down, media 0x20080 quality 1000 speed 0
KERN: [net/ralinkwifi/0] start running, 1 vaps running
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: pending INIT -> SCAN transition lost
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
KERN: [net/ralinkwifi/0] sta_newstate: INIT -> SCAN (0)
KERN: [net/ralinkwifi/0] [7c:ff:4d:6f:47:89] station assoc via MLME
KERN: [net/ralinkwifi/0] ieee80211_alloc_node 0xddca0000<7c:ff:4d:6f:47:89> in station table
KERN: [net/ralinkwifi/0] [7c:ff:4d:6f:47:89] ieee80211_alloc_node: inact_reload 2
KERN: [net/ralinkwifi/0] node_reclaim: remove 0x81708000<00:24:21:47:9f:5a> from station table, refcnt 7
KERN: [net/ralinkwifi/0] set WME_AC_BE (chan) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BE (bss ) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BK (chan) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BK (bss ) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_VI (chan) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
KERN: [net/ralinkwifi/0] set WME_AC_VI (bss ) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
KERN: [net/ralinkwifi/0] set WME_AC_VO (chan) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
KERN: [net/ralinkwifi/0] set WME_AC_VO (bss ) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
KERN: [net/ralinkwifi/0] update WME_AC_BE (chan+bss) [acm 0 aifsn 2 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] ieee80211_wme_updateparams_locked: WME params updated, cap_info 0xfe
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: SCAN -> AUTH (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: SCAN -> AUTH arg 192
KERN: [net/ralinkwifi/0] sta_newstate: SCAN -> AUTH (192)
KERN: [net/ralinkwifi/0] ieee80211_ref_node (ieee80211_send_mgmt:2647) 0xddca0000<7c:ff:4d:6f:47:89> refcnt 3
KERN: [net/ralinkwifi/0] [7c:ff:4d:6f:47:89] station deauth via MLME (reason: 3 (sending STA is leaving/has left IBSS or ESS))
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: AUTH -> INIT (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: AUTH -> INIT arg 3
KERN: [net/ralinkwifi/0] sta_newstate: AUTH -> INIT (3)
KERN: [net/ralinkwifi/0] node_reclaim: remove 0xddca0000<7c:ff:4d:6f:47:89> from station table, refcnt 1
KERN: [net/ralinkwifi/0] ieee80211_alloc_node 0x818d0000<00:24:21:47:9f:5a> in station table
KERN: [net/ralinkwifi/0] [00:24:21:47:9f:5a] ieee80211_alloc_node: inact_reload 2
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
KERN: [net/ralinkwifi/0] sta_newstate: INIT -> SCAN (0)
KERN: [net/ralinkwifi/0] [dc:39:6f:47:53:0f] station assoc via MLME
KERN: [net/ralinkwifi/0] ieee80211_alloc_node 0x81708000<dc:39:6f:47:53:0f> in station table
KERN: [net/ralinkwifi/0] [dc:39:6f:47:53:0f] ieee80211_alloc_node: inact_reload 2
KERN: [net/ralinkwifi/0] node_reclaim: remove 0x818d0000<00:24:21:47:9f:5a> from station table, refcnt 7
KERN: [net/ralinkwifi/0] set WME_AC_BE (chan) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BE (bss ) [acm 0 aifsn 3 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BK (chan) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_BK (bss ) [acm 0 aifsn 7 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] set WME_AC_VI (chan) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
KERN: [net/ralinkwifi/0] set WME_AC_VI (bss ) [acm 0 aifsn 2 logcwmin 3 logcwmax 4 txop 94]
KERN: [net/ralinkwifi/0] set WME_AC_VO (chan) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
KERN: [net/ralinkwifi/0] set WME_AC_VO (bss ) [acm 0 aifsn 2 logcwmin 2 logcwmax 3 txop 47]
KERN: [net/ralinkwifi/0] update WME_AC_BE (chan+bss) [acm 0 aifsn 2 logcwmin 4 logcwmax 10 txop 0]
KERN: [net/ralinkwifi/0] ieee80211_wme_updateparams_locked: WME params updated, cap_info 0xfe
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: SCAN -> AUTH (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: SCAN -> AUTH arg 192
KERN: [net/ralinkwifi/0] sta_newstate: SCAN -> AUTH (192)
KERN: [net/ralinkwifi/0] ieee80211_ref_node (ieee80211_send_mgmt:2647) 0x81708000<dc:39:6f:47:53:0f> refcnt 3
KERN: [net/ralinkwifi/0] [dc:39:6f:47:53:0f] station deauth via MLME (reason: 3 (sending STA is leaving/has left IBSS or ESS))
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: AUTH -> INIT (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: AUTH -> INIT arg 3
KERN: [net/ralinkwifi/0] sta_newstate: AUTH -> INIT (3)
KERN: [net/ralinkwifi/0] node_reclaim: remove 0x81708000<dc:39:6f:47:53:0f> from station table, refcnt 1
KERN: [net/ralinkwifi/0] ieee80211_alloc_node 0x818d8000<00:24:21:47:9f:5a> in station table
KERN: [net/ralinkwifi/0] [00:24:21:47:9f:5a] ieee80211_alloc_node: inact_reload 2
KERN: [net/ralinkwifi/0] ieee80211_new_state_locked: INIT -> SCAN (nrunning 0 nscanning 0)
KERN: [net/ralinkwifi/0] ieee80211_newstate_cb: INIT -> SCAN arg 0
KERN: [net/ralinkwifi/0] sta_newstate: INIT -> SCAN (0)

by bruno, 2 years ago

Attachment: oEmS.png added

comment:15 by bruno, 2 years ago

Now with Haiku_32bit_nightly hrev:56582 I get this output:

by bruno, 2 years ago

Attachment: 0db0_6877wifi.png added

comment:16 by bruno, 2 years ago

Just a listusb for completeness:

comment:17 by bruno, 2 years ago

Description: modified (diff)

comment:18 by waddlesplash, 5 weeks ago

Does it still not work? Please attach a full syslog, if it doesn't.

by bruno, 5 weeks ago

Attachment: syslog_32bit_nov_2024 added

comment:19 by waddlesplash, 5 weeks ago

Looks like EHCI errors may be preventing full initialization.

comment:20 by bruno, 5 weeks ago

With hrev.58327 still no initialazion. What else is needed to get it work?

Note: See TracTickets for help on using tickets.