mac80211: Do not check for valid hw_queues for P2P_DEVICE
A P2P Device interface does not have a netdev, and is not expected to be used for transmitting data, so there is no need to assign hw queues for it. Signed-off-by: Ilan Peer <ilan.peer@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
aba4e6fff8
commit
0ef24e528f
|
@ -278,13 +278,15 @@ static int ieee80211_check_queues(struct ieee80211_sub_if_data *sdata)
|
||||||
int n_queues = sdata->local->hw.queues;
|
int n_queues = sdata->local->hw.queues;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
if (sdata->vif.type != NL80211_IFTYPE_P2P_DEVICE) {
|
||||||
if (WARN_ON_ONCE(sdata->vif.hw_queue[i] ==
|
for (i = 0; i < IEEE80211_NUM_ACS; i++) {
|
||||||
IEEE80211_INVAL_HW_QUEUE))
|
if (WARN_ON_ONCE(sdata->vif.hw_queue[i] ==
|
||||||
return -EINVAL;
|
IEEE80211_INVAL_HW_QUEUE))
|
||||||
if (WARN_ON_ONCE(sdata->vif.hw_queue[i] >=
|
return -EINVAL;
|
||||||
n_queues))
|
if (WARN_ON_ONCE(sdata->vif.hw_queue[i] >=
|
||||||
return -EINVAL;
|
n_queues))
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((sdata->vif.type != NL80211_IFTYPE_AP) ||
|
if ((sdata->vif.type != NL80211_IFTYPE_AP) ||
|
||||||
|
|
Loading…
Reference in New Issue