[OpenWrt-Devel] [PATCH] add lsm package

2010-10-13 Thread Alexandros C. Couloumbis
Applied in r23422. thank you
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] Allow SSB EHCI/OHCI drivers to co-exist

2010-08-15 Thread Alexandros C. Couloumbis
On Thu Aug 12 16:43:20 CEST 2010, Steve Brown sbrown at cortland.com
wrote:
This patch allows attaching both ohci and ehci drivers. 
Currently, either driver can be loaded individually.
But if both were loaded, only the first one is probed
and attached.

It is useful to build only a single driver.
If only low speed devices are to be supported,
only the ohci driver is needed.

If only high speed devices are needed or a transaction 
translating hub that converts low speed devices to high 
speed, only the ehci driver is required.

applied in trunk r22661, thank you

--
Alexandros C Couloumbis
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] typo in ar71xx /base-files/etc/diag.sh

2010-08-14 Thread Alexandros C. Couloumbis
On Fri Aug 13 19:38:16 CEST 2010 Antonio Anselmi tony.anselmi at gmail.com
wrote:

42 bullet-m | rocket-m | nano-m)
43 status_led=ubnt:green:link4

must be

42 bullet-m | rocket-m | nanostation-m)
43 status_led=ubnt:green:link4

because /lib/ar71xx.sh returns nanostation-m and not nano-m

Antonio

applied in r22631, thank you
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] BRCM4716 support part 2

2010-04-24 Thread Alexandros C. Couloumbis
2010/4/15 Bernhard Loos bernhardloos at googlemail.com:
 Hello
 This adds two patches to brcm47xx.
 950-sbb-sysfs-files.patch is not 4716 specific and adds a bunch of
 sysfs attributes to ssb devices, similiar to pci devices.
 951-brcm4716-defines.patch contains defines for registers and device
 ids used on th brcm4716

 Bernhard


Applied on r21119  r21145

thank you
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] uClibc-0.9.30.1, x86, linux-2.6.30-rc7 getline issue

2009-05-26 Thread Alexandros C. Couloumbis
I had to use the following
toolchain/uClibc/patches-0.9.30.1/906-unifdef_getline.patch for a
x86/uClibc-0.9.30.1/linux-2.6.30-rc7 system.

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com 



906-unifdef_getline.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] kismet finet fix

2009-05-20 Thread Alexandros C. Couloumbis


On Wed, 20 May 2009 00:53:17 +0300, Alexandros C. Couloumbis a...@ozo.com
wrote:
 This patch fixes a compile issue of kismet and the finite prototype.
 
 Signed-off-by: Alexandros C. Couloumbis alex at ozo.com
 
 sending this as an attachment since I am using webmail that wraps long
 lines.

a revision in order to also deal with float types. thanks to Vasilis
Tsiligiannis (acinonyx). this is needed for uClibc-0.9.30.1

201-fix-finite.patch
Description: Binary data
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH]support for cs5536 IDE

2009-02-08 Thread Alexandros C. Couloumbis
it is a good idea to switch to the new SATA/ATA SFF code.  CS5536 is
included on the 2.6.28.4.  you just need to select scsi disk to be
compiled in the kernel not as a module and switch on the menuconfig from
/dev/hsa2 to /dev/sda2 on the CONFIG_X86_GRUB_ROOTPART


--alex
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] preliminary 2.6.29 patches

2009-02-03 Thread Alexandros C. Couloumbis
Alexandros C. Couloumbis wrote:
 Would you mind documenting the process you used to get the build
 system to use a not stable kernel?

 Because it is an RC release, was it enough to just change the
 LINUX_VERSION in the appropriate makefile?
 

 LINUX_VERSION is what needs to be updated on the 
 target/linux/platform/Makefile. in this case =2.6.29-rc2

 --alex 
   
Id be interested in that also as Ive been trying to hammer out an atheros
build from 2.6.29-rc wireless-test tree

On Wed, Jan 28, 2009 at 1:06 AM, Warren Turkal wt at penguintechs.org 
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel wrote:

/ Do you know if there is a way to use an arbitrary git snapshot for the
// version number?,
//
// Thanks,
// wt


the way I would do it is to use the latest rc candidate and put the git patch 
on the generic-2.6 patch-2.6.x directory on top of all other patches.  this is 
a quick  dirty way as it will produce for example an rc3 build system instead 
of rc3-git4. 

--alex
/

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] yaffs 2.6.29 patches

2009-02-03 Thread Alexandros C. Couloumbis
Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

--- linux-2.6.29-rc3/fs/yaffs2/yaffs_fs.c.orig  2009-02-03 20:10:33.0 
+0200
+++ linux-2.6.29-rc3/fs/yaffs2/yaffs_fs.c   2009-02-03 19:36:18.0 
+0200
@@ -1234,8 +1234,14 @@
yaffs_Object *parent = yaffs_InodeToObject(dir);

int error = -ENOSPC;
+
+#if LINUX_VERSION_CODE  KERNEL_VERSION(2, 6, 29)
uid_t uid = current-fsuid;
gid_t gid = (dir-i_mode  S_ISGID) ? dir-i_gid : current-fsgid;
+#else /* 2.6.29 and higher */
+uid_t uid = current-cred-fsuid;
+gid_t gid = (dir-i_mode  S_ISGID) ? dir-i_gid : 
current-cred-fsgid;
+#endif /* 2.6.29 check */

if((dir-i_mode  S_ISGID)  S_ISDIR(mode))
mode |= S_ISGID;
@@ -1414,8 +1420,14 @@
 {
yaffs_Object *obj;
yaffs_Device *dev;
+
+#if LINUX_VERSION_CODE  KERNEL_VERSION(2, 6, 29)
uid_t uid = current-fsuid;
gid_t gid = (dir-i_mode  S_ISGID) ? dir-i_gid : current-fsgid;
+#else /* 2.6.29 and higher */
+   uid_t uid = current-cred-fsuid;
+   gid_t gid = (dir-i_mode  S_ISGID) ? dir-i_gid : current-cred-fsgid;
+#endif /* 2.6.29 check */

T(YAFFS_TRACE_OS, (KERN_DEBUG yaffs_symlink\n));


--- linux-2.6.29-rc3/fs/yaffs2/yaffs_fs.c.orig  2009-02-03 21:23:46.0 
+0200
+++ linux-2.6.29-rc3/fs/yaffs2/yaffs_fs.c   2009-02-03 22:16:06.0 
+0200
@@ -2064,7 +2064,13 @@

/* Set up the memory size parameters */

+#ifdef __MIPSEL__ || __LINUX_ARM_ARCH__
+   { uint64_t res = mtd-size;
+   do_div (res, (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK));
+   nBlocks = res; }
+#else
nBlocks = mtd-size / (YAFFS_CHUNKS_PER_BLOCK * YAFFS_BYTES_PER_CHUNK);
+#endif
dev-startBlock = 0;
dev-endBlock = nBlocks - 1;
dev-nChunksPerBlock = YAFFS_CHUNKS_PER_BLOCK;
@@ -2090,7 +2096,13 @@
dev-totalBytesPerChunk = mtd-oobblock;
dev-nChunksPerBlock = mtd-erasesize / mtd-oobblock;
 #endif
+#ifdef __MIPSEL__ || __LINUX_ARM_ARCH__
+   { uint64_t res = mtd-size;
+   do_div (res, mtd-erasesize);
+   nBlocks = res; }
+#else
nBlocks = mtd-size / mtd-erasesize;
+#endif

dev-startBlock = 0;
dev-endBlock = nBlocks - 1;


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] preliminary 2.6.29 patches

2009-01-26 Thread Alexandros C. Couloumbis
I have converted some 2.6.28 patches to apply against a linux-2.6.29-rc2
kernel. this is not a complete work as a few things still do not work
but it does produce a bootable openwrt 2.6.29-rc2 system on an rb532
device. you can find these patches here:
http://wifi.ozo.com/airo/openwrt/source/2.6.29/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] adm5120 linux-2.6.28 patches

2009-01-25 Thread Alexandros C. Couloumbis
you may find working patches for this platform here:
http://wifi.ozo.com/airo/openwrt/source/adm5120/kernel/2.6.28/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] yaffs 2.6.28.1 patch

2009-01-25 Thread Alexandros C. Couloumbis
an updated patch for svn 14158:

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com


--- linux-2.6.28.1/fs/yaffs2/yaffs_fs.c.orig2009-01-25
08:40:03.0 +0200
+++ linux-2.6.28.1/fs/yaffs2/yaffs_fs.c 2009-01-25 08:40:50.0 +0200
@@ -745,7 +745,7 @@

T(YAFFS_TRACE_OS, (KERN_DEBUG start yaffs_write_begin\n));
/* Get a page */
-   pg = __grab_cache_page(mapping,index);
+   pg = grab_cache_page_write_begin(mapping, index, flags);
*pagep = pg;
if(!pg){
ret =  -ENOMEM;

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] uClibc++-0.2.2 patches for uClibc-0.9.30

2009-01-25 Thread Alexandros C. Couloumbis
Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

--- uClibc++-0.2.2/include/associative_base.orig2007-06-04 
01:51:12.0 +0300
+++ uClibc++-0.2.2/include/associative_base 2008-12-05 05:51:25.0 
+0200
@@ -74,7 +74,7 @@
typedef typename std::reverse_iteratorconst_iterator  
const_reverse_iterator;


-   explicit __base_associative(const Compare comp, const Allocator A, 
const key_type (*v_to_k)(const value_type))
+   explicit __base_associative(const Compare comp, const Allocator A, 
key_type (*v_to_k)(const value_type))
: c(comp), value_to_key(v_to_k) { }
 protected:
__base_associative(const associative_type x)
@@ -318,7 +318,7 @@
typedef std::listValueType listtype;

typename listtype::iterator base_iter;
-   typedef _associative_citerValueType, Compare, Allocator 
_associative_citer;
+   typedef _associative_citerValueType, Compare, Allocator 
__associative_citer;


 public:
@@ -347,13 +347,13 @@
bool operator==(const _associative_iter  m) const{
return m.base_iter == base_iter;
}
-   bool operator==(const _associative_citer  m) const{
+   bool operator==(const __associative_citer  m) const{
return m.base_iter == base_iter;
}
bool operator!=(const _associative_iter  m) const{
return m.base_iter != base_iter;
}
-   bool operator!=(const _associative_citer  m) const{
+   bool operator!=(const __associative_citer  m) const{
return m.base_iter != base_iter;
}
_associative_iter  operator++(){
@@ -378,8 +378,8 @@
--base_iter;
return temp;
}
-   operator _associative_citer() const{
-   return _associative_citer(base_iter);
+   operator __associative_citer() const{
+   return __associative_citer(base_iter);
}
typename listtype::iterator base_iterator(){
return base_iter;
@@ -498,7 +498,7 @@
using base::operator==;
using base::operator!=;

-   explicit __single_associative(const Compare comp, const Allocator A, 
const key_type (*v_to_k)(const value_type))
+   explicit __single_associative(const Compare comp, const Allocator A, 
key_type (*v_to_k)(const value_type))
: base(comp, A, v_to_k) { }

template class InputIterator __single_associative(
@@ -506,7 +506,7 @@
InputIterator last,
const Compare comp,
const Allocator A,
-   const key_type (*v_to_k)(const value_type)
+   key_type (*v_to_k)(const value_type)
) : base(comp, A, v_to_k) {
insert(first, last);
}

--- uClibc++-0.2.2/include/string.orig  2007-06-04 01:51:12.0 +0300
+++ uClibc++-0.2.2/include/string   2008-02-28 15:54:46.0 +0200
@@ -1017,11 +1017,11 @@

 template  _UCXXEXPORT bool operator==(const string  lhs, const string  
rhs);
 template  _UCXXEXPORT bool operator==(const char * lhs, const string  rhs);
-template  _UCXXEXPORT bool operator==(const string  rhs, const char * rhs);
+template  _UCXXEXPORT bool operator==(const string  lhs, const char * rhs);

 template  _UCXXEXPORT bool operator!=(const string  lhs, const string  
rhs);
 template  _UCXXEXPORT bool operator!=(const char * lhs, const string  rhs);
-template  _UCXXEXPORT bool operator!=(const string  rhs, const char * rhs);
+template  _UCXXEXPORT bool operator!=(const string  lhs, const char * rhs);

 template  _UCXXEXPORT string operator+(const string  lhs, const char* rhs);
 template  _UCXXEXPORT string operator+(const char* lhs, const string  rhs);


--- uClibc++-0.2.2/src/string.cpp.orig  2007-06-04 01:51:13.0 +0300
+++ uClibc++-0.2.2/src/string.cpp   2008-02-28 15:54:46.0 +0200
@@ -76,11 +76,11 @@

template _UCXXEXPORT bool operator==(const string  lhs, const string  
rhs);
template _UCXXEXPORT bool operator==(const char * lhs, const string  
rhs);
-   template _UCXXEXPORT bool operator==(const string  rhs, const char * 
rhs);
+   template _UCXXEXPORT bool operator==(const string  lhs, const char * 
rhs);

template _UCXXEXPORT bool operator!=(const string  lhs, const string  
rhs);
template _UCXXEXPORT bool operator!=(const char * lhs, const string  
rhs);
-   template _UCXXEXPORT bool operator!=(const string  rhs, const char * 
rhs);
+   template _UCXXEXPORT bool operator!=(const string  lhs, const char * 
rhs);

template _UCXXEXPORT string operator+(const string  lhs, const char* 
rhs);
template _UCXXEXPORT string operator+(const char* lhs, const string  
rhs);


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] htpdate-1.0.4 uClibc-0.9.30 patch

2009-01-22 Thread Alexandros C. Couloumbis
http://www.mail-archive.com/ucl...@uclibc.org/msg02985.html

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com


--- htpdate-1.0.4/htpdate.c.orig2009-01-22 11:20:54.0 +0200
+++ htpdate-1.0.4/htpdate.c 2009-01-22 11:18:55.0 +0200
@@ -359,7 +359,7 @@

/* Read current kernel frequency */
tmx.modes = 0;
-   ntp_adjtime(tmx);
+   __adjtimex(tmx);

/* Calculate new frequency */
freq = (long)(65536e6 * drift);
@@ -377,7 +377,7 @@
printlog( 1, seteuid() );
exit(1);
} else {
-   return( ntp_adjtime(tmx) );
+   return( __adjtimex(tmx) );
}

 }

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] linux-2.6.23 linux/time.h gcc-4.3 patch

2009-01-22 Thread Alexandros C. Couloumbis
http://acassis.wordpress.com/2008/07/01/erro-compilando-kernel-2622-no-opensuse11-gcc-431

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com


--- linux-2.6.23.17/include/linux/time.h.orig   2009-01-22
23:18:04.0 +0200
+++ linux-2.6.23.17/include/linux/time.h2009-01-22
23:25:17.0 +0200
@@ -177,6 +177,9 @@
 {
ns += a-tv_nsec;
while(unlikely(ns = NSEC_PER_SEC)) {
+// The following asm () prevents the compiler from
+// optimising this loop into a modulo operation.
+   asm( : +r(ns));
ns -= NSEC_PER_SEC;
a-tv_sec++;
}

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] yaffs 2.6.28.1 patch

2009-01-22 Thread Alexandros C. Couloumbis
http://bbs.archlinux.org/viewtopic.php?pid=484856

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

--- linux-2.6.28.1/fs/yaffs2/yaffs_fs.c.orig2009-01-22 23:47:36.0 
+0200
+++ linux-2.6.28.1/fs/yaffs2/yaffs_fs.c 2009-01-22 23:48:20.0 +0200
@@ -711,7 +711,7 @@
pgoff_t index = pos  PAGE_CACHE_SHIFT;
int ret = 0;

-   pg = __grab_cache_page(mapping, index);
+   pg = grab_cache_page_write_begin(mapping, index, flags);
if (!pg)
return -ENOMEM;



___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] chaostables need update for 2.6.28.x

2009-01-22 Thread Alexandros C. Couloumbis
chaostables are obsolete for some time now as they have been merged into
xtables-addons

https://dev.openwrt.org/ticket/4431
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] xt_TARPIT patch needs update for 2.6.28.x kernel

2009-01-22 Thread Alexandros C. Couloumbis
https://dev.openwrt.org/ticket/4432
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] 150-netfilter_imq.patch kernel 2.6.27.x

2008-11-04 Thread Alexandros C. Couloumbis
Alexandros C. Couloumbis wrote:
 patch 150-netfilter_imq.patch is no longer needed for kernels =2.6.27
 as IMQ is included in the kernel
   
please scratch this out, the above statement is false, a mistake.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] mac80211 get_unaligned fi x under mipsel

2008-07-27 Thread Alexandros C. Couloumbis

mac80211 under mipsel complains about implicit declaration of
get_unaligned.  the following patch deals with this issue.

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

---
diff -Nrub a/compat-wireless-2008-07-26/include/net/compat.h
b/compat-wireless-2008-07-26/include/net/compat.h
--- a/compat-wireless-2008-07-26/include/net/compat.h   2008-07-26
07:11:10.0 +0300
+++ b/compat-wireless-2008-07-26/include/net/compat.h   2008-07-27
12:58:28.0 +0300
@@ -678,6 +678,7 @@
 # include linux/unaligned/le_struct.h
 # include linux/unaligned/be_byteshift.h
 # include linux/unaligned/generic.h
+# include mipsel-asm-generic-unaligned.h
 #endif

 #endif /* mips */
diff -Nrub
a/compat-wireless-2008-07-26/include/net/mipsel-asm-generic-unaligned.h
b/compat-wireless-2008-07-26/include/net/mipsel-asm-generic-unaligned.h
--- a/compat-wireless-2008-07-26/include/net/mipsel-asm-generic-unaligned.h
1970-01-01 02:00:00.0 +0200
+++ b/compat-wireless-2008-07-26/include/net/mipsel-asm-generic-unaligned.h
2008-07-27 12:58:42.0 +0300
@@ -0,0 +1,120 @@
+#ifndef _ASM_GENERIC_UNALIGNED_H_
+#define _ASM_GENERIC_UNALIGNED_H_
+
+/*
+ * For the benefit of those who are trying to port Linux to another
+ * architecture, here are some C-language equivalents.
+ *
+ * This is based almost entirely upon Richard Henderson's
+ * asm-alpha/unaligned.h implementation.  Some comments were
+ * taken from David Mosberger's asm-ia64/unaligned.h header.
+ */
+
+#include linux/types.h
+
+/*
+ * The main single-value unaligned transfer routines.
+ */
+#define get_unaligned(ptr) \
+   __get_unaligned((ptr), sizeof(*(ptr)))
+#define put_unaligned(x,ptr) \
+   ((void)sizeof(*(ptr)=(x)),\
+   __put_unaligned((__force __u64)(x), (ptr), sizeof(*(ptr
+
+/*
+ * This function doesn't actually exist.  The idea is that when
+ * someone uses the macros below with an unsupported size (datatype),
+ * the linker will alert us to the problem via an unresolved reference
+ * error.
+ */
+extern void bad_unaligned_access_length(void) __attribute__((noreturn));
+
+/*
+ * Elemental unaligned loads
+ */
+
+static inline __u64 __uldq(const __u64 *addr)
+{
+   const struct __una_u64 *ptr = (const struct __una_u64 *) addr;
+   return ptr-x;
+}
+
+static inline __u32 __uldl(const __u32 *addr)
+{
+   const struct __una_u32 *ptr = (const struct __una_u32 *) addr;
+   return ptr-x;
+}
+
+static inline __u16 __uldw(const __u16 *addr)
+{
+   const struct __una_u16 *ptr = (const struct __una_u16 *) addr;
+   return ptr-x;
+}
+
+/*
+ * Elemental unaligned stores
+ */
+
+static inline void __ustq(__u64 val, __u64 *addr)
+{
+   struct __una_u64 *ptr = (struct __una_u64 *) addr;
+   ptr-x = val;
+}
+
+static inline void __ustl(__u32 val, __u32 *addr)
+{
+   struct __una_u32 *ptr = (struct __una_u32 *) addr;
+   ptr-x = val;
+}
+
+static inline void __ustw(__u16 val, __u16 *addr)
+{
+   struct __una_u16 *ptr = (struct __una_u16 *) addr;
+   ptr-x = val;
+}
+
+#define __get_unaligned(ptr, size) ({  \
+   const void *__gu_p = ptr;   \
+   __u64 __val;\
+   switch (size) { \
+   case 1: \
+   __val = *(const __u8 *)__gu_p;  \
+   break;  \
+   case 2: \
+   __val = __uldw(__gu_p); \
+   break;  \
+   case 4: \
+   __val = __uldl(__gu_p); \
+   break;  \
+   case 8: \
+   __val = __uldq(__gu_p); \
+   break;  \
+   default:\
+   bad_unaligned_access_length();  \
+   };  \
+   (__force __typeof__(*(ptr)))__val;  \
+})
+
+#define __put_unaligned(val, ptr, size)\
+({ \
+   void *__gu_p = ptr; \
+   switch (size) { \
+   case 1: \
+   *(__u8 *)__gu_p = (__force __u8)val;\
+   break;  \
+   case 2: \
+   __ustw((__force __u16)val, __gu_p); \
+   break;  \
+   case 4: \
+   __ustl((__force __u32)val, __gu_p); \
+   break;  \
+   case 8: \
+   __ustq(val, __gu_p);\
+   break;  \
+   default:\
+   bad_unaligned_access_length

Re: [OpenWrt-Devel] [PATCH] use the in-kernel hostap-driver

2008-07-27 Thread Alexandros C. Couloumbis

This update fixes a backward compatibility issue. use kmod-hostap instead
of kmod-net-hostap so we don't break dependencies such as hostap-utils and
others.

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

---
diff -Nrub a/package/kernel/modules/wireless.mk
b/package/kernel/modules/wireless.mk
--- a/package/kernel/modules/wireless.mk2008-07-24
13:25:22.0 +0300
+++ b/package/kernel/modules/wireless.mk2008-07-27
17:35:13.0 +0300
@@ -133,6 +133,56 @@
 $(eval $(call KernelPackage,net-airo))


+define KernelPackage/hostap
+  SUBMENU:=$(WIRELESS_MENU)
+  TITLE:=Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) driver
+  DEPENDS:[EMAIL PROTECTED]
+  KCONFIG:=CONFIG_HOSTAP
+ 
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50,hostap)
+endef
+
+define KernelPackage/hostap/description
+ Shared driver code for IEEE 802.11b wireless cards based on
+ Intersil Prism2/2.5/3 chipset. This driver supports so called
+ Host AP mode that allows the card to act as an IEEE 802.11
+ access point.
+
+ See http://hostap.epitest.fi/ for more information about the
+ Host AP driver configuration and tools. This site includes
+ information and tools (hostapd and wpa_supplicant) for WPA/WPA2
+ support.
+
+ This option includes the base Host AP driver code that is shared by
+ different hardware models. You will also need to enable support for
+ PLX/PCI/CS version of the driver to actually use the driver.
+
+ The driver can be compiled as a module and it will be called
+ hostap.ko.
+endef
+
+$(eval $(call KernelPackage,hostap))
+
+define KernelPackage/hostap-pci
+  SUBMENU:=$(WIRELESS_MENU)
+  TITLE:=Host AP driver for Prism2.5 PCI adaptors
+  DEPENDS:[EMAIL PROTECTED], kmod-hostap
+  KCONFIG:=CONFIG_HOSTAP_PCI
+ 
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX)
+  AUTOLOAD:=$(call AutoLoad,50,hostap_pci)
+endef
+
+define KernelPackage/hostap-pci/description
+ Host AP driver's version for Prism2.5 PCI adaptors.
+ Host AP support for Prism2/2.5/3 IEEE 802.11b is required for this
+ driver and its help text includes more information about the Host AP
+ driver.
+ The driver can be compiled as a module and will be named
+ hostap_pci.ko.
+endef
+
+$(eval $(call KernelPackage,hostap-pci))
+
 define KernelPackage/net-hermes
   SUBMENU:=$(WIRELESS_MENU)
   TITLE:=Hermes 802.11b chipset support

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] enable Cisco Aironet on PCI systems

2008-07-26 Thread Alexandros C. Couloumbis
1). This is a duplicate (comes with age)
http://lists.openwrt.org/pipermail/openwrt-devel/2007-December/001459.html

2). According to this:
http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/old/patch-2.6.14-rc4-git4.log


commit 6593b58cfb54138781c5cd88f605e2ae663301b0
tree 32ebcd01bb2eda36d83628d3a490555475c7e06c
parent e26148d934762b61133a64b6862f870624ff617d
author Matteo Croce [EMAIL PROTECTED] Fri, 14 Oct 2005 15:59:06 -0700
committer Linus Torvalds [EMAIL PROTECTED] Fri, 14 Oct 2005 17:10:12 -0700

[PATCH] wireless/airo: Build fix

The aironet PCI driver has a build dependency on ISA that prevent the
driver to compile on systems that doesn't support ISA, like x86_64.  The
driver really doesn't depend on ISA, it does some ISA stuff in the
initialization code, since the driver supports both ISA and PCI cards.  So
the driver should depend on ISA_DMA_API to build on all systems, and this
will not hurt PCI at all.

Signed-off-by: Matteo Croce [EMAIL PROTECTED]
Signed-off-by: Andrew Morton [EMAIL PROTECTED]
Signed-off-by: Linus Torvalds [EMAIL PROTECTED]


ISA_DMA_API appeard on 2.6.12 kernel:
http://www.linuxhq.com/kernel/v2.6/12/arch/mips/Kconfig
and was removed on kernel 2.6.15 for reasons that I am not
aware of (perhaps for less kernel size):
http://www.linuxhq.com/kernel/v2.6/15/arch/mips/Kconfig 

According to the above, the previous patch is not correct.
in order for a cisco airo miniPCI to work on a mips system 
the following patch needs to be applied.  another option will
be to totally remove the ISA related code from the driver 
itself.

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

---

diff -Nrub a/arch/mips/Kconfig b/arch/mips/Kconfig
--- a/arch/mips/Kconfig 2008-07-26 14:53:11.0 +0300
+++ b/arch/mips/Kconfig 2008-07-26 14:52:58.0 +0300
@@ -2126,3 +2126,18 @@
 source crypto/Kconfig

 source lib/Kconfig
+
+#
+# Use the generic interrupt handling code in kernel/irq/:
+#
+#config GENERIC_HARDIRQS
+#   bool
+#   default y
+
+#config GENERIC_IRQ_PROBE
+#   bool
+#   default y
+
+config ISA_DMA_API
+   bool
+   default y

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] enable Cisco Aironet on PCI systems

2008-07-25 Thread Alexandros C. Couloumbis

This patch corrects a dependency check and enables the Cisco airo wifi
driver on non-isa pci systems.

Signed-off-by: Alexandros C. Couloumbis alex at ozo.com

---
diff -Nrub a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig
--- a/drivers/net/wireless/Kconfig  2008-07-25 21:33:59.0 +0300
+++ b/drivers/net/wireless/Kconfig  2008-07-26 08:22:41.0 +0300
@@ -297,7 +297,7 @@

 config AIRO
tristate Cisco/Aironet 34X/35X/4500/4800 ISA and PCI cards
-   depends on ISA_DMA_API  WLAN_80211  (PCI || BROKEN)
+   depends on WLAN_80211  (PCI || BROKEN || ISA_DMA_API)
select WIRELESS_EXT
select CRYPTO
---help---


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel