For AP mode, driver sets IEEE80211_HW_CRYPTO_ENABLED hardware flag to avoid mac80211 reserving tail room space for crypto suite. Signed-off-by: Yogesh Ashok Powar <yogeshp@xxxxxxxxxxx> --- drivers/net/wireless/mwl8k.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index 28ebaec..7ddc9ca 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c @@ -5472,6 +5472,10 @@ static int mwl8k_firmware_load_success(struct mwl8k_priv *priv) /* Set rssi values to dBm */ hw->flags |= IEEE80211_HW_SIGNAL_DBM | IEEE80211_HW_HAS_RATE_CONTROL; + + /* This is needed to avoid tailroom calculations */ + hw->flags |= priv->ap_fw ? IEEE80211_HW_CRYPTO_ENABLED : 0; + hw->vif_data_size = sizeof(struct mwl8k_vif); hw->sta_data_size = sizeof(struct mwl8k_sta); -- 1.7.3.5 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html