* [PATCH] wext: include wireless event id when it has a size problem
@ 2012-08-24 12:43 Arend van Spriel
2012-09-05 14:13 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Arend van Spriel @ 2012-08-24 12:43 UTC (permalink / raw)
To: John W. Linville; +Cc: Linux Wireless List, Arend van Spriel
The wext code checks is the event data is within size limits.
When this check fails a message is logged with violating size.
This patch adds the event id to put us on the right track for
resolving that violation.
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
---
Maybe wext is not popular, but I found the change helpful debugging
so others may benefit from it. Still some wireless apps default to
it, eg. wpa_supplicant.
Gr. AvS
---
net/wireless/wext-core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c
index b0eb7aa..c8717c1 100644
--- a/net/wireless/wext-core.c
+++ b/net/wireless/wext-core.c
@@ -478,13 +478,13 @@ void wireless_send_event(struct net_device * dev,
if (descr->header_type == IW_HEADER_TYPE_POINT) {
/* Check if number of token fits within bounds */
if (wrqu->data.length > descr->max_tokens) {
- netdev_err(dev, "(WE) : Wireless Event too big (%d)\n",
- wrqu->data.length);
+ netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too big (%d)\n",
+ cmd, wrqu->data.length);
return;
}
if (wrqu->data.length < descr->min_tokens) {
- netdev_err(dev, "(WE) : Wireless Event too small (%d)\n",
- wrqu->data.length);
+ netdev_err(dev, "(WE) : Wireless Event (cmd=0x%04X) too small (%d)\n",
+ cmd, wrqu->data.length);
return;
}
/* Calculate extra_len - extra is NULL for restricted events */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] wext: include wireless event id when it has a size problem
2012-08-24 12:43 [PATCH] wext: include wireless event id when it has a size problem Arend van Spriel
@ 2012-09-05 14:13 ` Johannes Berg
2012-09-05 16:21 ` Arend van Spriel
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2012-09-05 14:13 UTC (permalink / raw)
To: Arend van Spriel; +Cc: John W. Linville, Linux Wireless List
On Fri, 2012-08-24 at 14:43 +0200, Arend van Spriel wrote:
> The wext code checks is the event data is within size limits.
> When this check fails a message is logged with violating size.
> This patch adds the event id to put us on the right track for
> resolving that violation.
>
> Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
> Signed-off-by: Arend van Spriel <arend@broadcom.com>
> ---
> Maybe wext is not popular, but I found the change helpful debugging
> so others may benefit from it. Still some wireless apps default to
> it, eg. wpa_supplicant.
I don't even want to know what you're debugging, but I applied it
anyway.
FWIW, wext isn't just "not popular", it's "pretty much dead" :-)
johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] wext: include wireless event id when it has a size problem
2012-09-05 14:13 ` Johannes Berg
@ 2012-09-05 16:21 ` Arend van Spriel
0 siblings, 0 replies; 3+ messages in thread
From: Arend van Spriel @ 2012-09-05 16:21 UTC (permalink / raw)
To: Johannes Berg; +Cc: John W. Linville, Linux Wireless List
On 09/05/2012 04:13 PM, Johannes Berg wrote:
> On Fri, 2012-08-24 at 14:43 +0200, Arend van Spriel wrote:
>> The wext code checks is the event data is within size limits.
>> When this check fails a message is logged with violating size.
>> This patch adds the event id to put us on the right track for
>> resolving that violation.
>>
>> Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
>> Signed-off-by: Arend van Spriel <arend@broadcom.com>
>> ---
>> Maybe wext is not popular, but I found the change helpful debugging
>> so others may benefit from it. Still some wireless apps default to
>> it, eg. wpa_supplicant.
>
> I don't even want to know what you're debugging, but I applied it
> anyway.
>
> FWIW, wext isn't just "not popular", it's "pretty much dead" :-)
>
> johannes
>
>
We got the "Wireless Event too big" message and were wondering what
event from our driver was causing it. I agree wext is pretty much dead
although wpa_supplicant still defaults to that driver. At least in most
distro's it seems to be so.
Gr. AvS
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-05 16:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24 12:43 [PATCH] wext: include wireless event id when it has a size problem Arend van Spriel
2012-09-05 14:13 ` Johannes Berg
2012-09-05 16:21 ` Arend van Spriel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).