This used to just simply use the number of bytes in the argument
as the method to detect which type of wifi encryption the network
is using. That sucked if you happened to use a 10-character
(WEP_KEY_BYTES*2) password. This at least makes sure to not treat
it as hex unless it's all hex characters.
valgrind really does not like -static. It throws thousands of
false positives. So, make the build non-static, then fix up
a couple of valgrind-detected leaks.
This should now automatically create control files in cases where
they were not present for some reason. This is probably because
the card was either formatted or it is new.
When a card is new or newly-formatted, it does not have the
control directory. This code starts to let us find where a
card is, even if that directory is not there.
Whoops. I mixed up the string ordering of SELSHARE and SELUPLOAD.
Reorder the transfer mode function to always fetch and print the
current mode, even after a set operatio
Also remove some cruft I just added.
I probably need to pull the information about these out of the Eye-Fi
documentation. But, here's the code.
Note that the string names that are specified also mach the values
that you see in the card log.
I've pulled the card out of my Nikon D90 a few times while
it is accessing the card. I can then put it in the PC and
see what the D90 was trying to do.
I've noticed two new commands: one to disable the WiFi on
the card, and the other to check to see if the WiFi is
currently disabled or not.
I haven't hooked these up to the user interface yet.
I also think the 'o' 13 command tells which ESSID the card
is currently associated with. 'o' 12 might be something to
do with pending uploads.
We used to clobber the password that came in from the user
when converting it from ASCII to binary for WEP. That
screwed it up because we need to use it twice: once for
testing, and once for the actual addition.
(it doesn show up in the log when I do this)
Start propogating error codes back from a bunch of
functions. We need this for the CHDK port because
we can't just exit() there.
Add dumping of the firmware version string.