From 05953e7d6fe777a86fb0088497e606fe151344f8 Mon Sep 17 00:00:00 2001 From: Lorenzo Bianconi Date: Thu, 18 Nov 2021 14:07:59 +0100 Subject: [PATCH] mt76: mt7615: remove dead code in get_omac_idx Remove always false if condition in get_omac_idx for sta type Signed-off-by: Lorenzo Bianconi Signed-off-by: Felix Fietkau --- mt7615/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mt7615/main.c b/mt7615/main.c index 890d9b07..a0e8db0b 100644 --- a/mt7615/main.c +++ b/mt7615/main.c @@ -141,9 +141,6 @@ static int get_omac_idx(enum nl80211_iftype type, u64 mask) if (i) return i - 1; - if (type != NL80211_IFTYPE_STATION) - break; - /* next, try to find a free repeater entry for the sta */ i = get_free_idx(mask >> REPEATER_BSSID_START, 0, REPEATER_BSSID_MAX - REPEATER_BSSID_START);