From: Johannes Berg Date: Wed, 19 Jan 2011 10:54:18 +0000 (-0800) Subject: iwlwifi: advertise max aggregate size X-Git-Tag: upstream/snapshot3+hdmi~11215^2~403^2~62^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b7688328422b88a7a15dc0dc123ad9ab1a6e22d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git iwlwifi: advertise max aggregate size Allow peers to size their reorder buffer more accurately by advertising that we'll never send aggregates longer than the default (31). Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy --- diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index de84d1f..dcc4b2d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c @@ -3188,6 +3188,8 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, IEEE80211_HW_SPECTRUM_MGMT | IEEE80211_HW_REPORTS_TX_ACK_STATUS; + hw->max_tx_aggregation_subframes = LINK_QUAL_AGG_FRAME_LIMIT_DEF; + if (!priv->cfg->base_params->broken_powersave) hw->flags |= IEEE80211_HW_SUPPORTS_PS | IEEE80211_HW_SUPPORTS_DYNAMIC_PS;