iwlagn: use huge command for beacon
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Apr 2011 19:28:56 +0000 (12:28 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 18 Apr 2011 16:26:12 +0000 (09:26 -0700)
commitb4ebd28f23e3ae00af886aff1c00f800dee3b080
tree379aa929d790e40f2b50ef97e5ee5d1b222544d5
parent7b21f00ee6073909c01adeba317af3d78c3b9d0a
iwlagn: use huge command for beacon

When testing some new P2P code, Angie found that the
driver might crash because the beacon command ended
up being bigger than a regular command. This is quite
obvious -- a normal command is limited to roughly 360
bytes but a beacon may be much larger of course.

To fix this, use the huge command buffer.

Reported-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn.c