[PATCH] b43: Add N-PHY related initvals firmware filenames.

2008-01-07 Thread Michael Buesch
This adds the initval filenames for the N-PHY firmware.

Signed-off-by: Michael Buesch [EMAIL PROTECTED]

---

Stuff for 2.6.25

Index: wireless-2.6/drivers/net/wireless/b43/main.c
===
--- wireless-2.6.orig/drivers/net/wireless/b43/main.c   2008-01-06 
00:12:08.0 +0100
+++ wireless-2.6/drivers/net/wireless/b43/main.c2008-01-06 
00:12:08.0 +0100
@@ -1671,12 +1671,18 @@ static int b43_request_firmware(struct b
filename = b0g0initvals5;
else if (rev = 13)
filename = lp0initvals13;
else
goto err_no_initvals;
break;
+   case B43_PHYTYPE_N:
+   if ((rev = 11)  (rev = 12))
+   filename = n0initvals11;
+   else
+   goto err_no_initvals;
+   break;
default:
goto err_no_initvals;
}
err = do_request_fw(dev, filename, fw-initvals);
if (err)
goto err_load;
@@ -1699,12 +1705,18 @@ static int b43_request_firmware(struct b
filename = b0g0bsinitvals5;
else if (rev = 11)
filename = NULL;
else
goto err_no_initvals;
break;
+   case B43_PHYTYPE_N:
+   if ((rev = 11)  (rev = 12))
+   filename = n0bsinitvals11;
+   else
+   goto err_no_initvals;
+   break;
default:
goto err_no_initvals;
}
err = do_request_fw(dev, filename, fw-initvals_band);
if (err)
goto err_load;
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: b43 will need a firmware upgrade soon

2008-01-07 Thread Jörg Sommer
Hallo Hendrik,

Hendrik Sattler [EMAIL PROTECTED] wrote:
 Am Montag 07 Januar 2008 schrieb Michael Buesch:
 What's the problem with all of this? Other drivers change firmware to
 incompatible versions on a regular basis. Look at ipw2200. There was a time
 when they changed the firmware basically on every kernel release.
 That wasn't a problem. Why would it be a problem here?

 Modprobe cannot use different configs for different kernel versions, so the 
 fwpostfix option doesn't help in userspace.

Why not? Put something like this in your modprobe.conf

install b43 case $(uname -r) in 2.6.25*) /sbin/insmod b43 fwprefix=new;; 
/sbin/insmod b43;; esac

It's not tested. It should only illustrate the idea!

Bye, Jörg.
-- 
“UNIX was not designed to stop people from doing stupid things, because
 that would also stop them from doing clever things.”
(Doug Gwyn)
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


b43 Injection?

2008-01-07 Thread Daniel
Hello,

I've started tinkering with a patch for the b43 driver to allow 
injection. I just wondered if anyone else has done this yet? And if 
there is some pointers to the differences between bcm43xx and b43 
because I'm not finding it that easy so far ;)


Cheers,

DanBUK.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: b43 Injection?

2008-01-07 Thread Daniel Bartlett
Hello Again,

I guess what is stumping me at the moment is where the

struct ieee80211_tx_control *ctl

comes from that is passed to b43_dma/pio_tx comes from?

I have grep'ed through b43 / ssb and not come up with where it is 
initialised. Any pointers?


Cheers,

DanBUK.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev


Re: b43 Injection?

2008-01-07 Thread Daniel
Hello Ehud,

Sorry I meant each function b43_dma_tx b43_pio_tx.

c-box b43 # grep -Hnr b43_dma_tx *
dma.c:1201:int b43_dma_tx(struct b43_wldev *dev,

c-box b43 # grep -Hnr b43_pio_tx *
pio.c:428:int b43_pio_tx(struct b43_wldev *dev,


I am trying to convert the injection patch from bcm43xx which is found here:
http://atros.org/bcm43xx-injection-linux-2.6.22.patch

The issue is the newer b43 is using mac80211 therefore has more 
surrounding it, which I am not finding well docuemented. I have started 
reading http://johannes.sipsolutions.net/files/mac80211/ but it's not 
complete.

I am now thinking that it might be possible to use b43_pio_txpacket and 
possibly dma_tx_fragment

Cheers,

Dan.
___
Bcm43xx-dev mailing list
Bcm43xx-dev@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev