Bug 181845 - net-wireless/adm8211 - patches to fix compiles under kernel 2.6.20
Bug#: 181845 Product:  Gentoo Linux Version: 2007.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: mobile@gentoo.org Reported By: redhatter@gentoo.org
Component: Ebuilds
URL:  http://www.t2-project.org/packages/adm8211.html
Summary: net-wireless/adm8211 - patches to fix compiles under kernel 2.6.20
Keywords:  
Status Whiteboard: 
Opened: 2007-06-13 01:18 0000
Description:   Opened: 2007-06-13 01:18 0000
Hi,

net-wireless/adm8211 has been broken under recent kernels for some months
now... Just today however, I stumbled some patches that cleaned up most of the
issues.

The site mentioned here is where I got most of the patches, the one exception
being the 2.6.20-no-config_h.patch, which is my own creation.  These fix
compiler errors with newer kernels.  I'll try the module out shortly (as soon
as I locate my SMC wireless card), but it builds successfully under
hardened-sources-2.6.20.

------- Comment #1 From Stuart Longland 2007-06-13 01:19:11 0000 -------
Created an attachment (id=121871) [details]
Updated: adm8211-20050620.ebuild

Updated ebuild

------- Comment #2 From Stuart Longland 2007-06-13 01:19:47 0000 -------
Created an attachment (id=121872) [details]
Get rid of #include <linux/config.h>

------- Comment #3 From Stuart Longland 2007-06-13 01:20:06 0000 -------
Created an attachment (id=121873) [details]
2.6.20 fixes

------- Comment #4 From Stuart Longland 2007-06-13 01:20:32 0000 -------
Created an attachment (id=121874) [details]
2.6.17 fixes

------- Comment #5 From Stuart Longland 2007-06-13 01:20:50 0000 -------
Created an attachment (id=121875) [details]
2.6.19 fixes

------- Comment #6 From Stuart Longland 2007-06-13 02:19:15 0000 -------
And it works... :-) (smc0 is the adm8211-based card... renamed thanks to
ifrename)

wander ~ # iwconfig smc0
smc0      IEEE 802.11b  ESSID:"BrisbaneMesh-longlandclan-719"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:40:05:C0:6B:A4
          Bit Rate:11 Mb/s   Tx-Power:41 dBm
          Retry limit:3   RTS thr:off   Fragment thr:off
          Encryption key:off

wander ~ # ifconfig smc0
smc0      Link encap:Ethernet  HWaddr 00:04:E2:87:5E:2B
          inet addr:10.160.34.4  Bcast:10.160.34.15  Mask:255.255.255.240
          inet6 addr: fe80::204:e2ff:fe87:5e2b/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:499 errors:4 dropped:0 overruns:0 frame:4
          TX packets:476 errors:1 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:34726 (33.9 Kb)  TX bytes:70962 (69.2 Kb)
          Interrupt:11

wander ~ # ping -c 3 10.160.34.1
PING 10.160.34.1 (10.160.34.1) 56(84) bytes of data.
64 bytes from 10.160.34.1: icmp_seq=1 ttl=64 time=2.13 ms
64 bytes from 10.160.34.1: icmp_seq=2 ttl=64 time=2.01 ms
64 bytes from 10.160.34.1: icmp_seq=3 ttl=64 time=1.95 ms

--- 10.160.34.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 1.956/2.034/2.130/0.080 ms

Commit at will. :-)

------- Comment #7 From Stefan Schweizer 2007-07-07 11:08:38 0000 -------
thank you, committed.