Merge branch 'linus' into perf/urgent
[pandora-kernel.git] / drivers / net / wireless / orinoco / cfg.c
index 09fae2f..736bbb9 100644 (file)
@@ -153,6 +153,9 @@ static int orinoco_scan(struct wiphy *wiphy, struct net_device *dev,
        priv->scan_request = request;
 
        err = orinoco_hw_trigger_scan(priv, request->ssids);
+       /* On error the we aren't processing the request */
+       if (err)
+               priv->scan_request = NULL;
 
        return err;
 }