ath5k: drop bogus warning on drv_set_key with unsupported cipher

am: 93c1f1db1a

Change-Id: If7f4b650f817cdb97b849a9006971e4d98d9ff6e
This commit is contained in:
Felix Fietkau
2017-03-12 08:23:09 +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);