Bläddra i källkod

airo: queue SIOCSIWAUTH-requested auth mode change for next commit

Code was clearly wrong, plus callers expect the mode change to happen as
soon as possible, not dropped on the floor until the next time some
other config value changes and a commit happens.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Dan Williams 16 år sedan
förälder
incheckning
011f5c5bb2
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      drivers/net/wireless/airo.c

+ 1 - 1
drivers/net/wireless/airo.c

@@ -6713,11 +6713,11 @@ static int airo_set_auth(struct net_device *dev,
 				local->config.authType = AUTH_ENCRYPT;
 				local->config.authType = AUTH_ENCRYPT;
 			} else
 			} else
 				return -EINVAL;
 				return -EINVAL;
-			break;
 
 
 			/* Commit the changes to flags if needed */
 			/* Commit the changes to flags if needed */
 			if (local->config.authType != currentAuthType)
 			if (local->config.authType != currentAuthType)
 				set_bit (FLAG_COMMIT, &local->flags);
 				set_bit (FLAG_COMMIT, &local->flags);
+			break;
 		}
 		}
 
 
 	case IW_AUTH_WPA_ENABLED:
 	case IW_AUTH_WPA_ENABLED: