aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-rx.c
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2009-11-06 17:52:45 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-11 15:23:41 -0500
commita3b6bd5bf23c5cd95389e24121da02d2330eaf21 (patch)
tree0f5664317960b5a44621aa7b10acd1d8e92b7c09 /drivers/net/wireless/iwlwifi/iwl-rx.c
parentcf7ff8dfe64c8ca8a71b4fcbac357a3476ed1888 (diff)
iwlwifi: allocate 128 bytes linear buffer for rx skb
Allocate 128 bytes linear buffer for rx skb. The first 64 bytes is reserved for mac80211 usage (for radiotap header expansion, etc). The frame header starts from the second 64 bytes. Cc: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c
index e5339c9ad13e..d2dc7cceb5f2 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rx.c
@@ -937,12 +937,13 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv,
937 iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) 937 iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats))
938 return; 938 return;
939 939
940 skb = alloc_skb(IWL_LINK_HDR_MAX, GFP_ATOMIC); 940 skb = alloc_skb(IWL_LINK_HDR_MAX * 2, GFP_ATOMIC);
941 if (!skb) { 941 if (!skb) {
942 IWL_ERR(priv, "alloc_skb failed\n"); 942 IWL_ERR(priv, "alloc_skb failed\n");
943 return; 943 return;
944 } 944 }
945 945
946 skb_reserve(skb, IWL_LINK_HDR_MAX);
946 skb_add_rx_frag(skb, 0, rxb->page, (void *)hdr - rxb_addr(rxb), len); 947 skb_add_rx_frag(skb, 0, rxb->page, (void *)hdr - rxb_addr(rxb), len);
947 948
948 /* mac80211 currently doesn't support paged SKB. Convert it to 949 /* mac80211 currently doesn't support paged SKB. Convert it to