ath5k: drop bogus warning on drv_set_key with unsupported cipher

am: dc7bbf895e

Change-Id: I2c600fe8403bb76a3417d33eee4c27cb0a7d57fc
This commit is contained in:
Felix Fietkau
2017-03-12 08:19:25 +00:00
committed by android-build-merger

View File

@@ -502,8 +502,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
break;
return -EOPNOTSUPP;
default:
WARN_ON(1);
return -EINVAL;
return -EOPNOTSUPP;
}
mutex_lock(&ah->lock);