-
Notifications
You must be signed in to change notification settings - Fork 35
My enhancements to the WiShield tree #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CapnBry
wants to merge
17
commits into
asynclabs:master
Choose a base branch
from
CapnBry:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If user code is also using strncmp_P() this could save 28 additional byes of code space from the elimination of linking strncmp()
…fdef DEBUG. Old DEBUG code moved to DEBUG_VERBOSE. Saves (bytes): 260 code, 132 data, 1 bss = 392 PROGMEM, 133 RAM
…he code size due to linking strncpy() but I want to use that function later and it will come free then.
…memcpy/memcpy_P to use strncpy/strncpy_P. Saves 90 bytes of code. Also removed security_passphrase_len because it is only used in one place, saves 1 byte of RAM but means one less thing in the WiFi config block
…eed to waste the space of storing four compiled-in keys when only one can be used.
… some code space if you had both defined. This is prep for adding precalculated WPA keys.
…G_VERBOSE defined
This is a 29% throughput increase and it shouldn't cause any overflow because I reduced the RAM usage by 133 in the DEBUG commit alone (7f035e1)
Wow, I'm really excited about the precalc feature! |
Includes support for size_t print functions (not void) and changed program code suffix (.pde to .ino).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I started these enhancements 9 months ago before the WiShield became unavailable. I've ported them from my svn tree to git.
-- Merges all the WEP / WPA into one variable, called security_data. This saves on code space and the user can only use one at a time anyway
-- Adds WPA / WPA2 Precalc as a security type. This is a 32 byte precalculated key so the g2100 doesn't have to do it on every boot. Reduces startup time from 35 seconds to 6 seconds.
-- Reduces RAM (~150 bytes) and PROGMEM (~300 bytes) by optimizing some functions and removing the runtime verbose flag. You can still compile with verbose but not change it at runtime.
-- Take back some of that RAM I freed by increasing the UIP buffer size by 100 bytes. Increases throughput by 29%.