diff options
author | Oyvind Repvik <nail@nslu2-linux.org> | 2006-02-10 09:25:19 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-02-10 09:25:19 +0000 |
commit | f1ce6e581e05f2a41170a6ffb562104ffb9ed3e0 (patch) | |
tree | a7ab9bf09937ae895a326cb60f9ac06f08ae007d /packages/zd1211/zd1211-r52 | |
parent | 5475414a7806c4f9e82beb940caedfd60a1db74b (diff) |
zd1211: Add transmitkey index fix
Diffstat (limited to 'packages/zd1211/zd1211-r52')
-rw-r--r-- | packages/zd1211/zd1211-r52/transmitkey.index.fix.diff | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/zd1211/zd1211-r52/transmitkey.index.fix.diff b/packages/zd1211/zd1211-r52/transmitkey.index.fix.diff new file mode 100644 index 0000000000..a225d37698 --- /dev/null +++ b/packages/zd1211/zd1211-r52/transmitkey.index.fix.diff @@ -0,0 +1,16 @@ +--- zd1211-driver-r52/src/zd1205.c.orig 2006-02-10 10:02:56.000000000 +0100 ++++ zd1211-driver-r52/src/zd1205.c 2006-02-10 10:02:56.000000000 +0100 +@@ -5693,7 +5693,12 @@ + /* Check if the key is not marked as invalid */ + if (!(erq->flags & IW_ENCODE_NOKEY)) { // for command: key xxxxxxxxxx [n] + // ZD1211DEBUG(0, "Set contents of key %d\n", index+1); +- pSetting->EncryKeyId = index; ++ /* We change the transmit key only if we are ++ * transitioning from a no-encrypt state. This ++ * behavior is deduced from the iwconfig man page */ ++ if (pSetting->EncryOnOff == 0) { ++ pSetting->EncryKeyId = index; ++ } + memcpy(&pSetting->keyVector[index][0], key, pSetting->WepKeyLen); + zd1205_config_wep_keys(macp); + } else { // For command: key on |