Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5612c0140ac58b51209a24c8fd6a92ceb472aabe
Commit:     5612c0140ac58b51209a24c8fd6a92ceb472aabe
Parent:     81173e34d454c353d9f0a53760609f3b9d30a311
Author:     Dan Williams <[EMAIL PROTECTED]>
AuthorDate: Thu Aug 2 13:20:12 2007 -0400
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:50:16 2007 -0700

    [PATCH] libertas: ignore spurious mesh autostart events
    
    Don't trust the firmware to always send them at the right time,
    ignore them when the driver thinks mesh autostart is disabled.
    
    Signed-off-by: Dan Williams <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/cmdresp.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/libertas/cmdresp.c 
b/drivers/net/wireless/libertas/cmdresp.c
index 93bf63b..c43b272 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -968,6 +968,11 @@ int libertas_process_event(wlan_private * priv)
                break;
 
        case MACREG_INT_CODE_MESH_AUTO_STARTED:
+               /* Ignore spurious autostart events if autostart is disabled */
+               if (!priv->mesh_autostart_enabled) {
+                       lbs_pr_info("EVENT: MESH_AUTO_STARTED (ignoring)\n");
+                       break;
+               }
                lbs_pr_info("EVENT: MESH_AUTO_STARTED\n");
                adapter->connect_status = LIBERTAS_CONNECTED;
                if (priv->mesh_open == 1) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to