iwlagn: fix warning in testmode attribute table
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 11 Jul 2011 17:47:39 +0000 (10:47 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:46 +0000 (15:02 -0400)
Fix the compile warning cause by [IWL_TM_ATTR_MAX - 1]

Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-sv-open.c

index a322f5e..77ed1c2 100644 (file)
@@ -645,7 +645,7 @@ static int iwl_testmode_ownership(struct ieee80211_hw *hw, struct nlattr **tb)
  */
 int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len)
 {
-       struct nlattr *tb[IWL_TM_ATTR_MAX - 1];
+       struct nlattr *tb[IWL_TM_ATTR_MAX];
        struct iwl_priv *priv = hw->priv;
        int result;