Libertas: Fix regression in cmd.c introduced in commit 18c96c3497aa871608d57ca5e08de3558159a6c9
PATCH 1/1 Libertas: Fix regression in cmd.c introduced in commit 18c96c3497aa871608d57ca5e08de3558159a6c9
Hi all,
While reading the last libertas commits, I discovered that this commit introduced a regression in the libertas wireless driver, inside cmd.c :
commit 18c96c3497aa871608d57ca5e08de3558159a6c9
[PATCH] libertas: fix WPA associations by handling ENABLE_RSN correctly
The logic behind has been totally broken, and I think this patch is worth reviewing.
Regards,
drivers/net/wireless/libertas/cmd.c +1 -1
@@ -241,7 +241,7 @@if (*enable) penableRSN->enable =cpu_to_le16 (cmd_enable_rsn);else - penableRSN->enable =cpu_to_le16 (cmd_enable_rsn); + penableRSN->enable =cpu_to_le16 (cmd_disable_rsn); }lbs_deb_leave (LBS_DEB_CMD );
Signature · 2 lines
Guillaume LECERF GeeXboX developer
Hi Guillaume,
[ Added relevant folks to Cc: ]
Quoted 6 lines · Guillaume LECERF
[...]
drivers/net/wireless/libertas/cmd.c line 247
Quoted 8 lines
drivers/net/wireless/libertas/cmd.c +1
-1@@ -241,7 +241,7 @@if (*enable) penableRSN->enable =cpu_to_le16 (cmd_enable_rsn);else - penableRSN->enable =cpu_to_le16 (cmd_enable_rsn); + penableRSN->enable =cpu_to_le16 (cmd_disable_rsn); }lbs_deb_leave (LBS_DEB_CMD );
Thanks for the patch (looks reasonable to me), but:
1. No point sending a patch without a "Signed-off-by:" line.
2. Changelog (a few lines of explanation before signed-off-by) must specify what was wrong, and why the patch is correct.
3. Always Cc: relevant maintainers or at least _somebody_ who _will_ pick it up.
4. Gmail has done horrible things to the patch as usual, use some other mailer or script.
And in general, please read: Documentation/SubmittingPatches and http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txt
Satyam
Quoted 3 lines · Satyam Sharma
Hi Guillaume,
[ Added relevant folks to Cc: ]
Botched backport, head is correct. It's worth noting that WPA didn't work before the original commit at _all_, and after the commit it would actually work, but you probably couldn't turn it off :)
Thanks for the catch, I'll fix and push to linville.
dan
Quoted 30 lines · Guillaume LECERF
Quoted 6 lines
[...]
drivers/net/wireless/libertas/cmd.c line 247
Quoted 8 lines
drivers/net/wireless/libertas/cmd.c +1
-1@@ -241,7 +241,7 @@if (*enable) penableRSN->enable =cpu_to_le16 (cmd_enable_rsn);else - penableRSN->enable =cpu_to_le16 (cmd_enable_rsn); + penableRSN->enable =cpu_to_le16 (cmd_disable_rsn); }lbs_deb_leave (LBS_DEB_CMD );Thanks for the patch (looks reasonable to me), but:
1. No point sending a patch without a "Signed-off-by:" line.
2. Changelog (a few lines of explanation before signed-off-by) must specify what was wrong, and why the patch is correct.
3. Always Cc: relevant maintainers or at least _somebody_ who _will_ pick it up.
4. Gmail has done horrible things to the patch as usual, use some other mailer or script.And in general, please read:
Documentation/SubmittingPatchesand http://www.zip.com.au/~akpm/linux/patches/stuff/tpp.txtSatyam