Skip to content

Commit

Permalink
Force MAC80211 broadcast decrypt
Browse files Browse the repository at this point in the history
ssv6051p doesn't seem capable of decrypting broadcast/multicast traffic
  • Loading branch information
HandyMenny committed Nov 2, 2022
1 parent 83caf9f commit 351daa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smac/dev.c
Expand Up @@ -1189,7 +1189,7 @@ static int _set_group_key_tkip_ccmp(struct ssv_softc *sc,
&& (sc->sh->cfg.use_wpa2_only == 1))) {
dev_dbg(sc->dev, "VIF %d uses HW %s cipher for group.\n",
vif_priv->vif_idx, cipher_name);
#ifdef USE_MAC80211_DECRYPT_BROADCAST
#if defined(USE_MAC80211_DECRYPT_BROADCAST) || 1
vif_priv->has_hw_decrypt = false;
ret = -EOPNOTSUPP;
#else
Expand All @@ -1210,7 +1210,7 @@ static int _set_group_key_tkip_ccmp(struct ssv_softc *sc,
ret = -EOPNOTSUPP;
}
if (vif_priv->has_hw_encrypt || vif_priv->has_hw_decrypt) {
#ifdef USE_MAC80211_DECRYPT_BROADCAST
#if defined(USE_MAC80211_DECRYPT_BROADCAST) || 1
ssv6200_hw_set_group_type(sc->sh, ME_NONE);
#else
ssv6200_hw_set_group_type(sc->sh, cipher);
Expand Down

0 comments on commit 351daa5

Please sign in to comment.