bcm43xx: enable shared key authentication
Subsystems (3)
PATCH 1/1 bcm43xx: enable shared key authentication
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
drivers/net/wireless/bcm43xx/bcm43xx_main.c +4 -0
@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */
Quoted 4 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Signed-off-by Daniel Drake <[email protected]>
Quoted 16 lines
Index:
linux/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================drivers/net/wireless/bcm43xx/bcm43xx_main.c +4
-0@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */
Signature · 1 line
Greetings Michael.
Quoted 2 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Meaning that _until now_, softmac couldn't do Shared Key auth??? That might explain a few NM bugs I think I've seen floating around.
Dan
Quoted 21 lines
Signed-off-by Daniel Drake <[email protected]>Index:
linux/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================drivers/net/wireless/bcm43xx/bcm43xx_main.c +4
-1@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */ -To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Dan Williams
Quoted 2 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Meaning that
_untilnow_, softmac couldn't do Shared Key auth???
Yep.
Signature · 1 line
Greetings Michael.
Quoted 10 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Signed-off-by Daniel Drake <[email protected]>Index:
linux/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
drivers/net/wireless/bcm43xx/bcm43xx_main.c static void bcm43xx_ieee80211_set_securi · line 3608
Quoted 10 lines
drivers/net/wireless/bcm43xx/bcm43xx_main.c +4
-0@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */
I had problems applying this one. I recall having a similar problem w/ a patch in the last round of merging as well.
The version of bcm43xx_main.c in wireless-2.6 looks like this (post patch):
secinfo->encrypt = sec->encrypt;
dprintk(", .encrypt = %d", sec->encrypt);
}
if (sec->flags & SEC_AUTH_MODE) {
secinfo->auth_mode = sec->auth_mode;
dprintk(", .auth_mode = %d\n", sec->auth_mode);
}
dprintk("\n");
if (bcm43xx_status(bcm) == BCM43xx_STAT_INITIALIZED &&
!bcm->ieee->host_encrypt) {Am I missing a patch?
Please make sure I get any patches that are missing from wireless-2.6 -- it is obviously better if we are all on the same page! :-)
Thanks,
John
Signature · 2 lines
John W. Linville [email protected]
Quoted 40 lines · John W. Linville
Quoted 10 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Signed-off-by Daniel Drake <[email protected]>Index:
linux/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================drivers/net/wireless/bcm43xx/bcm43xx_main.c static void bcm43xx_ieee80211_set_securi · line 3608
Quoted 10 lines
drivers/net/wireless/bcm43xx/bcm43xx_main.c +4
-0@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */ I had problems applying this one. I recall having a similar problem w/ a patch in the last round of merging as well.
The version of
bcm43xx_main.cin wireless-2.6 looks like this (post patch):secinfo->encrypt = sec->encrypt; dprintk(", .encrypt = %d", sec->encrypt); } if (sec->flags & SEC_AUTH_MODE) { secinfo->auth_mode = sec->auth_mode; dprintk(", .auth_mode = %d\n", sec->auth_mode); } dprintk("\n"); if (bcm43xx_status(bcm) == BCM43xx_STAT_INITIALIZED && !bcm->ieee->host_encrypt) {
Quoted 4 lines
Am I missing a patch?
Please make sure I get any patches that are missing from wireless-2.6 -- it is obviously better if we are all on the same page! :-)
Daniel's patch is diffed to an older tree. wireless-2.6 recently removed bcm->initialized and friends and added a more usable and more correct bcm43xx_status() flag.
So, basically the following just has to be added after the other if(sec->flags & FOO), but before the if(bcm43xx_status...)
if (sec->flags & SEC_AUTH_MODE) {
secinfo->auth_mode = sec->auth_mode;
dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode);
}Signature · 1 line
Greetings Michael.
Quoted 50 lines · Michael Buesch
Quoted 40 lines · John W. Linville
Quoted 10 lines · Daniel Drake
I recently patched softmac to enable shared key authentication. This small patch will enable crazy or unfortunate bcm43xx users to use this new capability.
Signed-off-by Daniel Drake <[email protected]>Index:
linux/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================drivers/net/wireless/bcm43xx/bcm43xx_main.c static void bcm43xx_ieee80211_set_securi · line 3608
Quoted 10 lines
drivers/net/wireless/bcm43xx/bcm43xx_main.c +4
-0@@ -3599,6 +3599,10 @@ static void bcm43xx_ieee80211_set_securi secinfo->encrypt = sec->encrypt; dprintk(KERN_INFO PFX " .encrypt = %d\n", sec->encrypt); } +if (sec->flags &SEC_AUTH_MODE ) { + secinfo->auth_mode = sec->auth_mode; + dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); + }if (bcm->initialized && !bcm->ieee->host_encrypt) {if (secinfo->enabled) {/* upload WEP keys to hardware */ I had problems applying this one. I recall having a similar problem w/ a patch in the last round of merging as well.
The version of
bcm43xx_main.cin wireless-2.6 looks like this (post patch):secinfo->encrypt = sec->encrypt; dprintk(", .encrypt = %d", sec->encrypt); } if (sec->flags & SEC_AUTH_MODE) { secinfo->auth_mode = sec->auth_mode; dprintk(", .auth_mode = %d\n", sec->auth_mode); } dprintk("\n"); if (bcm43xx_status(bcm) == BCM43xx_STAT_INITIALIZED && !bcm->ieee->host_encrypt) {Quoted 4 lines
Am I missing a patch?
Please make sure I get any patches that are missing from wireless-2.6 -- it is obviously better if we are all on the same page! :-)
Daniel's patch is diffed to an older tree. wireless-2.6 recently removed
bcm->initializedand friends and added a more usable and more correctbcm43xx_status()flag.
Quoted 7 lines
So, basically the following just has to be added after the other
if(sec->flags & FOO), but before theif(bcm43xx_status...)if (sec->flags & SEC_AUTH_MODE) { secinfo->auth_mode = sec->auth_mode; dprintk(KERN_INFO PFX " .auth_mode = %d\n", sec->auth_mode); }
Oh, the printk is wrong. The \n has to be removed.
Signature · 1 line
Greetings Michael.