--- zzzz-none-000/linux-2.6.28.10/include/linux/wireless.h 2009-05-02 18:54:43.000000000 +0000 +++ puma5-6360-529/linux-2.6.28.10/include/linux/wireless.h 2010-04-26 15:48:26.000000000 +0000 @@ -548,7 +548,17 @@ #define IW_SCAN_CAPA_TIME 0x40 /* Max number of char in custom event - use multiple of them if needed */ -#define IW_CUSTOM_MAX 256 /* In bytes */ +#define IW_CUSTOM_MAX ((255*2) + 8 + 10) + /* ==AVM/JBR 20080731 FIX_IWCUSTOMMAX_TOO_SMALL== + * IW_CUSTOM_MAX was too small, as IEs get hex-encoded + * when transfered from kernel into userspace. So the + * original 256 was not enough for IEs longer thant 125 bytes. + * + * New length: + * 255 IE-len in air * 2 for hex encoding + * +8 for "rsn_ie=" + * +10 for safety */ +#define AVM_IW_COSTOM_MAX 1 /* Define to issue warnings */ /* Generic information element */ #define IW_GENERIC_IE_MAX 1024