summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/wl12xx/tx.c')
-rw-r--r--drivers/net/wireless/wl12xx/tx.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index fa518a5b7c8..36eb0d66fd6 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -427,15 +427,7 @@ static int wl1271_prepare_tx_frame(struct wl1271 *wl, struct wl12xx_vif *wlvif,
}
hlid = wl12xx_tx_get_hlid(wl, wlvif, skb);
if (hlid == WL12XX_INVALID_LINK_ID) {
- if (wlvif->bss_type == BSS_TYPE_IBSS &&
- !test_bit(WLVIF_FLAG_IBSS_JOINED, &wlvif->flags)) {
- /* It's ok to drop packets when not joined to IBSS */
- wl1271_debug(DEBUG_TX, "dropping skb while IBSS not "
- " joined");
- } else {
- wl1271_error("invalid hlid. dropping skb 0x%p", skb);
- }
-
+ wl1271_error("invalid hlid. dropping skb 0x%p", skb);
return -EINVAL;
}