Skip to contentSkip to conversation

prism54: bug in getting auth type

PATCH New Dan Carpenter 1 participant 1 message Jan 13, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prism54: bug in getting auth type

There is a missing break statement so SHARED_KEY authentication doesn't work.

---
This is a static checker fix. Untested.

drivers/net/wireless/prism54/isl_ioctl.c +1 -0
index 4e44b1a..1c22b81 100644
@@ -1503,6 +1503,7 @@ static int prism54_get_auth(struct net_device *ndev,
 			case DOT11_AUTH_BOTH:
 			case DOT11_AUTH_SK:
 				param->value = IW_AUTH_ALG_SHARED_KEY;
+				break;
 			case DOT11_AUTH_NONE:
 			default:
 				param->value = 0;