Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 054b08d4 authored by Hong Liu's avatar Hong Liu Committed by James Ketrenos
Browse files

Don't set hardware WEP if we are actually using TKIP/AES.



Signed-off-by: default avatarHong Liu <hong.liu@intel.com>
parent 55135791
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -5443,8 +5443,11 @@ static void shim__set_security(struct net_device *dev,
			else
				memcpy(priv->ieee->sec.keys[i], sec->keys[i],
				       sec->key_sizes[i]);
			if (sec->level == SEC_LEVEL_1) {
				priv->ieee->sec.flags |= (1 << i);
				priv->status |= STATUS_SECURITY_UPDATED;
			} else
				priv->ieee->sec.flags &= ~(1 << i);
		}
	}