Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] libertas: convert GET_LOG to a direct command
@ 2008-03-13  8:48 Holger Schurig
  2008-03-13  8:49 ` Holger Schurig
  0 siblings, 1 reply; 3+ messages in thread
From: Holger Schurig @ 2008-03-13  8:48 UTC (permalink / raw)
  To: libertas-dev; +Cc: linux-wireless, Dan Williams, John W. Linville

Now uses __lbs_cmd() to get the "log" (it's actually more a
snapshot of various counters, not a sequential log).

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>

----

While looking here, I saw that that there is an imbalance on
populating priv->logmsg (via lbs_get_log() and it's usage.

lbs_get_log() is called twice:

* in assoc.c after a successful association
* in wext.c, lbs_get_wireless_stats()

however, priv->logmsg is only used once:

* in wext.c, lbs_get_wireless_stats(), to populate
  priv->wstats.discard.*

However, the usage in wext.c happens BEFORE the call to 
lbs_get_log(), so lbs_get_wireless_stats() actually works with 
old data. This seems strange ...

Does anybody know if this was intended behavior?  If not, I'd 
kill the calls to lbs_get_log() in assoc.c and move the other 
one to line 882 of wext.c.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-03-13  9:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13  8:48 [PATCH] libertas: convert GET_LOG to a direct command Holger Schurig
2008-03-13  8:49 ` Holger Schurig
2008-03-13  9:09   ` Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox