iwlagn: fix priv->cfg->ht_params NULL pointer dereference
commit107ef97a170dec95893f34614edd92eb8cb9b5d0
authorStanislaw Gruszka <sgruszka@redhat.com>
Wed, 12 Oct 2011 08:16:35 +0000 (12 10:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 14 Oct 2011 18:48:16 +0000 (14 14:48 -0400)
treea53c6939653d75a72ac1c6cac5d6b1ab5f4f8de2
parentf9a703e173849425079e29e63bf960c2625e0a85
iwlagn: fix priv->cfg->ht_params NULL pointer dereference

This fix regression introduced by commit:

commit 15b3f3b006b42a678523cad989bfd60b76bf4403
Author: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Date:   Fri Jun 3 07:54:13 2011 -0700

    iwlagn: set smps mode after assoc for 1000 device

Also remove unneeded brackets on the way.

Address:
https://bugzilla.redhat.com/show_bug.cgi?id=744155

Cc: stable@kernel.org # 3.1+
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rxon.c