diff options
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index 6304ed63588a..2f178f73943f 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -396,8 +396,9 @@ int ieee80211_data_to_8023(struct sk_buff *skb, const u8 *addr, | |||
396 | } | 396 | } |
397 | break; | 397 | break; |
398 | case cpu_to_le16(0): | 398 | case cpu_to_le16(0): |
399 | if (iftype != NL80211_IFTYPE_ADHOC) | 399 | if (iftype != NL80211_IFTYPE_ADHOC && |
400 | return -1; | 400 | iftype != NL80211_IFTYPE_STATION) |
401 | return -1; | ||
401 | break; | 402 | break; |
402 | } | 403 | } |
403 | 404 | ||