/proc files missing statistics

Michael Shuler mike
Mon Jun 2 11:25:27 PDT 2003


I also had the problem.  It's pretty easy to fix.  I just made my own "cat"
replacement.

Here's why it doesn't work:
  The busybox cat/more/etc. uses getc which is OK but is not very
efficient. But it is appropriate for what busybox is intended for, small
memory and disk usage.  Based off the way that the hostap driver works
it doesn't deal with this very well.

To fix it:
  Make a quick program in C that opens the file, reads the whole proc file
in using fread instead of getc and then dump it out to stdout.

If anyone wants the source I'll be happy to email it to them.  One of
these days I was going to fix the hostap driver and submit the code but I
just haven't got around to it yet.

--------------------------------------

Michael Shuler









More information about the Hostap mailing list