Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-24 Thread hopto
still does not work. by nids normally works as a client.

--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/CFT-Ralink-RT2860-RT2870-RT3060-RT3090-support-tp5683758p5711933.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-12 Thread Bernhard Schmidt
On Sat, May 12, 2012 at 4:40 PM, hopto  wrote:
> on first problem:
> #ifconfig ral0 inet 192.168.0.1 netmask 0xfff0 ssid freebsdap channel 11
> mediaopt hostap
> ifconfig: SIOCS80211: Invalid argument
>
> on second problem:
> If the set is not as klinet otobrazhayutsya available networks at all.
> Ate configured as an access point to the kind of okay (wlan0 status
> running)but customers do not see the network.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html


-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-12 Thread hopto
on first problem:
#ifconfig ral0 inet 192.168.0.1 netmask 0xfff0 ssid freebsdap channel 11
mediaopt hostap
ifconfig: SIOCS80211: Invalid argument

on second problem:
If the set is not as klinet otobrazhayutsya available networks at all.
Ate configured as an access point to the kind of okay (wlan0 status
running)but customers do not see the network.

--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/CFT-Ralink-RT2860-RT2870-RT3060-RT3090-support-tp5683758p5707220.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-12 Thread Bernhard Schmidt
On Sat, May 12, 2012 at 8:44 AM, hopto  wrote:
> does not work DWA-525 is not as an access point, not as a client
>
> May 12 01:57:23 bit-box kernel: ral0:  mem
> 0xfe51-0xfe51 irq 16 at device 0.0 on pci6
> May 12 01:58:52 bit-box kernel: ral0: unable to receive rt2860fw firmware
> image

Yeah, as mentioned in the initial mail, you need the firmware from
HEAD. Go to http://svnweb.freebsd.org/base/head/ and pull the content
of sys/contrib/dev/ral and sys/modules/ralfw and rebuild the firmware
module.

-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-12 Thread hopto
does not work DWA-525 is not as an access point, not as a client

May 12 01:57:23 bit-box kernel: ral0:  mem
0xfe51-0xfe51 irq 16 at device 0.0 on pci6
May 12 01:58:52 bit-box kernel: ral0: unable to receive rt2860fw firmware
image
May 12 01:58:52 bit-box kernel: ral0: could not load 8051 microcode
May 12 01:59:57 bit-box kernel: ral0: could not write to BBP through MCU
May 12 02:01:02 bit-box kernel: ral0: need multicast update callback
May 12 02:01:02 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:22:50 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: Waiting (max 60 seconds) for system process
`bufdaemon' to stop...ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: Waiting (max 60 seconds) for system process
`syncer' to stop...ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: Syncing disks, vnodes remaining...5 ral0:
could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 5 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 2 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 2 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 1 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 1 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 1 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 0 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 0 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: 0 ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0: could not write to BBP through MCU
May 12 09:33:56 bit-box kernel: ral0:  mem
0xfe51-0xfe51 irq 16 at device 0.0 on pci6
May 12 09:33:56 bit-box kernel: ral0: unable to receive rt2860fw firmware
image
May 12 09:33:56 bit-box kernel: ral0: could not load 8051 microcode
May 12 09:33:56 bit-box kernel: ral0: need multicast update callback
May 12 09:34:20 bit-box kernel: ral0: unable to receive rt2860fw firmware
image
May 12 09:34:20 bit-box kernel: ral0: could not load 8051 microcode


--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/CFT-Ralink-RT2860-RT2870-RT3060-RT3090-support-tp5683758p5706728.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-11 Thread Bernhard Schmidt
On Friday 11 May 2012 17:57:03 hopto wrote:
> FreeBSD 9 amd64
> 
> cc1: warnings being treated as errors
> /usr/src/sys/modules/ral/../../dev/ral/rt2860.c: In function
> 'rt2860_attach':
> /usr/src/sys/modules/ral/../../dev/ral/rt2860.c:349: warning: assignment
> from incompatible pointer type
> *** Error code 1
> 
> Stop in /usr/src/sys/modules/ral.
> 
> what?

9.0? Try attached patch

Though, you are better of updating to stable/9, the patches should
apply/build cleanly there.

-- 
Bernhard
Index: sys/dev/ral/rt2860.c
===
--- sys/dev/ral/rt2860.c	(revision 235233)
+++ sys/dev/ral/rt2860.c	(working copy)
@@ -76,7 +76,7 @@
 #endif
 
 static struct ieee80211vap *rt2860_vap_create(struct ieee80211com *,
-			const char [IFNAMSIZ], int, enum ieee80211_opmode,
+			const char [IFNAMSIZ], int, int,
 			int, const uint8_t [IEEE80211_ADDR_LEN],
 			const uint8_t [IEEE80211_ADDR_LEN]);
 static void	rt2860_vap_delete(struct ieee80211vap *);
@@ -428,7 +428,7 @@
 
 static struct ieee80211vap *
 rt2860_vap_create(struct ieee80211com *ic, const char name[IFNAMSIZ], int unit,
-enum ieee80211_opmode opmode, int flags,
+int opmode, int flags,
 const uint8_t bssid[IEEE80211_ADDR_LEN],
 const uint8_t mac[IEEE80211_ADDR_LEN])
 {
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-11 Thread hopto
FreeBSD 9 amd64

cc1: warnings being treated as errors
/usr/src/sys/modules/ral/../../dev/ral/rt2860.c: In function
'rt2860_attach':
/usr/src/sys/modules/ral/../../dev/ral/rt2860.c:349: warning: assignment
from incompatible pointer type
*** Error code 1

Stop in /usr/src/sys/modules/ral.

what?

--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/CFT-Ralink-RT2860-RT2870-RT3060-RT3090-support-tp5683758p5703401.html
Sent from the freebsd-current mailing list archive at Nabble.com.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-08 Thread Bernhard Schmidt
On Sat, May 5, 2012 at 12:51 PM, Bernhard Schmidt  wrote:
> Please apply attached patch (also here [1]) on top of the first one,
> it fixes channel switching for >= 3070 (called the wrong function,
> doh..) as well as a bgscan issue.
>
> [1] http://techwires.net/~bschmidt/rt2860_1.diff

And another update [1] on top of the other 2 patches.

* fix TX DMA, a wrong dmat has been used
* add some more PCI IDs
* disable debugging output by default
* disable bgscan until it's sorted out
* a printf is now hidden behind bootverbose

So far it looks quite good, no open issues at the moment, keep on testing! ;)

If nothing new comes up within the next few days I intend to commit
this by the end of the week or something.

[1] http://techwires.net/~bschmidt/rt2860_2.diff

-- 
Bernhard


rt2860_2.diff
Description: Binary data
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-06 Thread Adrian Chadd
Hi,

FWIW, "device timeout" may just be watchdog related race conditions,
rather than an actual hardware device timeout.

I have the same issues in ath(4). I need to fix a whole lot of locking
constructs before I can fix 'that'.



Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-06 Thread Sergey V. Dyatko
On Sat, 5 May 2012 14:50:52 +0200
Bernhard Schmidt  wrote:

> On Sat, May 5, 2012 at 2:27 PM, Sergey V. Dyatko
>  wrote:
> > On Sat, 5 May 2012 12:51:10 +0200
> > Bernhard Schmidt  wrote:
> >> Please apply attached patch (also here [1]) on top of the first
> >> one, it fixes channel switching for >= 3070 (called the wrong
> >> function, doh..) as well as a bgscan issue.
> >>
> >> [1] http://techwires.net/~bschmidt/rt2860_1.diff
> >>
> >
> > * patch applied without errors
> > * build/install - ok
> >
> > kldload and after ~5 minutes:
> >
> > May  5 15:01:20 laptop kernel: ral0: device timeout
> > May  5 15:06:12 laptop kernel: ral0: device timeout
> >
> > without bgscan I didn't see such messages  ~30-40 min
> 
> Ok great, so except bgscan you haven't seen any other issue yet?
> 

Yes.

-- 
wbr, tiger
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-05 Thread Bernhard Schmidt
On Sat, May 5, 2012 at 2:27 PM, Sergey V. Dyatko
 wrote:
> On Sat, 5 May 2012 12:51:10 +0200
> Bernhard Schmidt  wrote:
>> Please apply attached patch (also here [1]) on top of the first one,
>> it fixes channel switching for >= 3070 (called the wrong function,
>> doh..) as well as a bgscan issue.
>>
>> [1] http://techwires.net/~bschmidt/rt2860_1.diff
>>
>
> * patch applied without errors
> * build/install - ok
>
> kldload and after ~5 minutes:
>
> May  5 15:01:20 laptop kernel: ral0: device timeout
> May  5 15:06:12 laptop kernel: ral0: device timeout
>
> without bgscan I didn't see such messages  ~30-40 min

Ok great, so except bgscan you haven't seen any other issue yet?

-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-05 Thread Sergey V. Dyatko
On Sat, 5 May 2012 12:51:10 +0200
Bernhard Schmidt  wrote:

> On Saturday 05 May 2012 09:52:58 Sergey V. Dyatko wrote:
> > On Thu, 3 May 2012 18:53:52 +0200
> > Bernhard Schmidt  wrote:
> > 
> > > Hi folks,
> > > 
> > > As some of you might know there has been some work going on
> > > porting support for new Ralink chipsets from OpenBSD. Several
> > > different drivers where floating around but nothing seemed to be
> > > decent enough to be committed. ray@ and I had been working on
> > > cleaning up one of those to get it into a good enough shape, but
> > > abandoned this approach as it resulted in more work than starting
> > > from scratch.
> > > 
> > > So, attached diff [1] is a from-scratch effort to port over
> > > support for the new chipsets. It doesn't contain fancy stuff like
> > > 802.11n support as of yet (this will be worked one once the
> > > legacy stuff is in HEAD), nonetheless it showed pretty decent
> > > performance during the basic sta/adhoc/hostap tests I've done.
> > > 
> > > I'd appreciate testing and feedback ;)
> > > 
> > at 1st I would say 'Thank You' for all people who working on this :)
> > 
> > patch, make, make install, kldload:
> > http://tiger.ipfw.ru/files/rt2860_3090.txt
> > 
> > this is  FreeBSD 10.0-CURRENT, r234992M: Fri May  4 11:25:53 FET
> > 2012 from time to time on messages:
> > May  5 10:32:47 laptop kernel: ral0: device timeout
> > May  5 10:37:49 laptop kernel: ral0: device timeout
> > May  5 10:42:50 laptop kernel: ral0: device timeout
> > 
> > LED... is just glowing, rarely blinks. With patch from Alexander
> > (ray@) it doesn't work
> > 
> > [tiger@laptop]~%scp
> > tiger:/storage/FreeBSD-8.2-RELEASE-amd64-dvd1.iso .
> > FreeBSD-8.2-RELEASE-amd64-dvd1.iso
> > 11% 271MB   1.9MB/s   18:19 ETA ^C
> > Killed by signal 2.
> > where 'tiger' is my desktop
> 
> Please apply attached patch (also here [1]) on top of the first one,
> it fixes channel switching for >= 3070 (called the wrong function,
> doh..) as well as a bgscan issue.
> 
> [1] http://techwires.net/~bschmidt/rt2860_1.diff
> 

* patch applied without errors
* build/install - ok

kldload and after ~5 minutes:

May  5 15:01:20 laptop kernel: ral0: device timeout
May  5 15:06:12 laptop kernel: ral0: device timeout

without bgscan I didn't see such messages  ~30-40 min

-- 
wbr, tiger
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-05 Thread Bernhard Schmidt
On Saturday 05 May 2012 09:52:58 Sergey V. Dyatko wrote:
> On Thu, 3 May 2012 18:53:52 +0200
> Bernhard Schmidt  wrote:
> 
> > Hi folks,
> > 
> > As some of you might know there has been some work going on porting
> > support for new Ralink chipsets from OpenBSD. Several different
> > drivers where floating around but nothing seemed to be decent enough
> > to be committed. ray@ and I had been working on cleaning up one of
> > those to get it into a good enough shape, but abandoned this approach
> > as it resulted in more work than starting from scratch.
> > 
> > So, attached diff [1] is a from-scratch effort to port over support
> > for the new chipsets. It doesn't contain fancy stuff like 802.11n
> > support as of yet (this will be worked one once the legacy stuff is
> > in HEAD), nonetheless it showed pretty decent performance during the
> > basic sta/adhoc/hostap tests I've done.
> > 
> > I'd appreciate testing and feedback ;)
> > 
> at 1st I would say 'Thank You' for all people who working on this :)
> 
> patch, make, make install, kldload:
> http://tiger.ipfw.ru/files/rt2860_3090.txt
> 
> this is  FreeBSD 10.0-CURRENT, r234992M: Fri May  4 11:25:53 FET 2012
> from time to time on messages:
> May  5 10:32:47 laptop kernel: ral0: device timeout
> May  5 10:37:49 laptop kernel: ral0: device timeout
> May  5 10:42:50 laptop kernel: ral0: device timeout
> 
> LED... is just glowing, rarely blinks. With patch from Alexander (ray@)
> it doesn't work
> 
> [tiger@laptop]~%scp tiger:/storage/FreeBSD-8.2-RELEASE-amd64-dvd1.iso .
> FreeBSD-8.2-RELEASE-amd64-dvd1.iso 11%
> 271MB   1.9MB/s   18:19 ETA
> ^C
> Killed by signal 2.
> where 'tiger' is my desktop

Please apply attached patch (also here [1]) on top of the first one,
it fixes channel switching for >= 3070 (called the wrong function,
doh..) as well as a bgscan issue.

[1] http://techwires.net/~bschmidt/rt2860_1.diff

-- 
Bernhard
Index: sys/dev/ral/rt2860.c
===
--- sys/dev/ral/rt2860.c	(revision 234847)
+++ sys/dev/ral/rt2860.c	(working copy)
@@ -1605,10 +1605,7 @@ rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
 		ieee80211_radiotap_tx(vap, m);
 	}
 
-	if (hdrlen & 3)
-		pad = 4 - (hdrlen & 3);
-	else
-		pad = 0;
+	pad = (hdrlen + 3) & ~3;
 
 	/* copy and trim 802.11 header */
 	memcpy(txwi + 1, wh, hdrlen);
@@ -1667,7 +1664,7 @@ rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
 	/* first segment is TXWI + 802.11 header */
 	txd = &ring->txd[ring->cur];
 	txd->sdp0 = htole32(data->paddr);
-	txd->sdl0 = htole16(sizeof (struct rt2860_txwi) + hdrlen + pad);
+	txd->sdl0 = htole16(sizeof (struct rt2860_txwi) + pad);
 	txd->flags = qsel;
 
 	/* setup payload segments */
@@ -1776,7 +1773,7 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
 	u_int hdrlen;
 	uint16_t dur;
 	uint8_t type, qsel, mcs, pid, tid, qid;
-	int i, nsegs, ntxds, rate, ridx, error;
+	int i, nsegs, ntxds, pad, rate, ridx, error;
 
 	/* the data pool contains at least one element, pick the first */
 	data = SLIST_FIRST(&sc->data_pool);
@@ -1860,6 +1857,8 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
 		ieee80211_radiotap_tx(vap, m);
 	}
 
+	pad = (hdrlen + 3) & ~3;
+
 	/* copy and trim 802.11 header */
 	memcpy(txwi + 1, wh, hdrlen);
 	m_adj(m, hdrlen);
@@ -1917,7 +1916,7 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
 	/* first segment is TXWI + 802.11 header */
 	txd = &ring->txd[ring->cur];
 	txd->sdp0 = htole32(data->paddr);
-	txd->sdl0 = htole16(sizeof (struct rt2860_txwi) + hdrlen);
+	txd->sdl0 = htole16(sizeof (struct rt2860_txwi) + pad);
 	txd->flags = qsel;
 
 	/* setup payload segments */
@@ -2336,7 +2335,6 @@ rt2860_scan_start(struct ieee80211com *ic)
 	tmp & ~(RT2860_BCN_TX_EN | RT2860_TSF_TIMER_EN |
 	RT2860_TBTT_TIMER_EN));
 	rt2860_set_gp_timer(sc, 0);
-	rt2860_set_bssid(sc, ifp->if_broadcastaddr);
 }
 
 static void
@@ -2346,10 +2344,10 @@ rt2860_scan_end(struct ieee80211com *ic)
 	struct rt2860_softc *sc = ifp->if_softc;
 	struct ieee80211vap *vap = TAILQ_FIRST(&ic->ic_vaps);
 
-	rt2860_enable_tsf_sync(sc);
-	/* XXX keep local copy */
-	rt2860_set_bssid(sc, vap->iv_bss->ni_bssid);
-	rt2860_set_gp_timer(sc, 500);
+	if (vap->iv_state == IEEE80211_S_RUN) {
+		rt2860_enable_tsf_sync(sc);
+		rt2860_set_gp_timer(sc, 500);
+	}
 }
 
 static void
@@ -2359,7 +2357,7 @@ rt2860_set_channel(struct ieee80211com *ic)
 	struct rt2860_softc *sc = ifp->if_softc;
 
 	RAL_LOCK(sc);
-	rt2860_set_chan(sc, ieee80211_chan2ieee(ic, ic->ic_curchan));
+	rt2860_switch_chan(sc, ic->ic_curchan);
 	RAL_UNLOCK(sc);
 }
 
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-05 Thread Bernhard Schmidt
On Saturday 05 May 2012 09:52:58 Sergey V. Dyatko wrote:
> On Thu, 3 May 2012 18:53:52 +0200
> Bernhard Schmidt  wrote:
> 
> > Hi folks,
> > 
> > As some of you might know there has been some work going on porting
> > support for new Ralink chipsets from OpenBSD. Several different
> > drivers where floating around but nothing seemed to be decent enough
> > to be committed. ray@ and I had been working on cleaning up one of
> > those to get it into a good enough shape, but abandoned this approach
> > as it resulted in more work than starting from scratch.
> > 
> > So, attached diff [1] is a from-scratch effort to port over support
> > for the new chipsets. It doesn't contain fancy stuff like 802.11n
> > support as of yet (this will be worked one once the legacy stuff is
> > in HEAD), nonetheless it showed pretty decent performance during the
> > basic sta/adhoc/hostap tests I've done.
> > 
> > I'd appreciate testing and feedback ;)
> > 
> at 1st I would say 'Thank You' for all people who working on this :)
> 
> patch, make, make install, kldload:
> http://tiger.ipfw.ru/files/rt2860_3090.txt
> 
> this is  FreeBSD 10.0-CURRENT, r234992M: Fri May  4 11:25:53 FET 2012
> from time to time on messages:
> May  5 10:32:47 laptop kernel: ral0: device timeout
> May  5 10:37:49 laptop kernel: ral0: device timeout
> May  5 10:42:50 laptop kernel: ral0: device timeout

That interval is fishy.. can you try do disable bgscan?
ifconfig wlan0 -bgscan

> LED... is just glowing, rarely blinks. With patch from Alexander (ray@)
> it doesn't work
> 
> [tiger@laptop]~%scp tiger:/storage/FreeBSD-8.2-RELEASE-amd64-dvd1.iso .
> FreeBSD-8.2-RELEASE-amd64-dvd1.iso 11%
> 271MB   1.9MB/s   18:19 ETA
> ^C
> Killed by signal 2.
> where 'tiger' is my desktop
> 
> 
> > The diff requires HEAD due to the firmware being available only there,
> > though, if there are enough requests, I might consider looking into
> > getting it merged to 9. (Simply pulling sys/modules/ralfw/ and
> > sys/contrib/dev/ral/ from HEAD might be enough I guess.)
> > 
> > [1] http://techwires.net/~bschmidt/rt2860.diff
> > 
> 
> 
> 
> 

-- 
Bernhard
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-05 Thread Sergey V. Dyatko
On Thu, 3 May 2012 18:53:52 +0200
Bernhard Schmidt  wrote:

> Hi folks,
> 
> As some of you might know there has been some work going on porting
> support for new Ralink chipsets from OpenBSD. Several different
> drivers where floating around but nothing seemed to be decent enough
> to be committed. ray@ and I had been working on cleaning up one of
> those to get it into a good enough shape, but abandoned this approach
> as it resulted in more work than starting from scratch.
> 
> So, attached diff [1] is a from-scratch effort to port over support
> for the new chipsets. It doesn't contain fancy stuff like 802.11n
> support as of yet (this will be worked one once the legacy stuff is
> in HEAD), nonetheless it showed pretty decent performance during the
> basic sta/adhoc/hostap tests I've done.
> 
> I'd appreciate testing and feedback ;)
> 
at 1st I would say 'Thank You' for all people who working on this :)

patch, make, make install, kldload:
http://tiger.ipfw.ru/files/rt2860_3090.txt

this is  FreeBSD 10.0-CURRENT, r234992M: Fri May  4 11:25:53 FET 2012
from time to time on messages:
May  5 10:32:47 laptop kernel: ral0: device timeout
May  5 10:37:49 laptop kernel: ral0: device timeout
May  5 10:42:50 laptop kernel: ral0: device timeout

LED... is just glowing, rarely blinks. With patch from Alexander (ray@)
it doesn't work

[tiger@laptop]~%scp tiger:/storage/FreeBSD-8.2-RELEASE-amd64-dvd1.iso .
FreeBSD-8.2-RELEASE-amd64-dvd1.iso 11%
271MB   1.9MB/s   18:19 ETA
^C
Killed by signal 2.
where 'tiger' is my desktop


> The diff requires HEAD due to the firmware being available only there,
> though, if there are enough requests, I might consider looking into
> getting it merged to 9. (Simply pulling sys/modules/ralfw/ and
> sys/contrib/dev/ral/ from HEAD might be enough I guess.)
> 
> [1] http://techwires.net/~bschmidt/rt2860.diff
> 



-- 
wbr, tiger
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-04 Thread matt

On 05/03/12 11:18, Adrian Chadd wrote:

Hi,

First off, let me say "thankyou" to you, ray@ and all the people who
have chipped away at this little problem. I look very forward to
having rt2xxx 802.11n support, as do many users on the forums. :)

I haven't yet done a pass or two to see what the state of the
locking/concurrency handling is. Don't let that stop you from
committing it though, I'm sure we can find/fix whatever issues creep
up post-commit.

Thanks again!



Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Thanks Bernhard!

I'm sure there are many people with this chipset that are going to be 
very happy.

It's good that we have something homegrown as well.

I'll try to test it this weekend on my rt3090.

Matt
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support

2012-05-03 Thread Adrian Chadd
Hi,

First off, let me say "thankyou" to you, ray@ and all the people who
have chipped away at this little problem. I look very forward to
having rt2xxx 802.11n support, as do many users on the forums. :)

I haven't yet done a pass or two to see what the state of the
locking/concurrency handling is. Don't let that stop you from
committing it though, I'm sure we can find/fix whatever issues creep
up post-commit.

Thanks again!



Adrian
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"