aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cfg.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2010-09-21 15:49:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-09-21 15:49:14 -0400
commitb618f6f885579a6237e5bf4582fa6167972ddef4 (patch)
treeb11508178570b98ce9cb2d76ecebd046a6f0e77c /drivers/net/wireless/libertas/cfg.c
parent462fb2af9788a82a534f8184abfde31574e1cfa0 (diff)
parent6e5c2b4e8addfaab8ef54dedaf7b607e1585c35b (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts: arch/arm/mach-omap2/board-omap3pandora.c drivers/net/wireless/ath/ath5k/base.c
Diffstat (limited to 'drivers/net/wireless/libertas/cfg.c')
-rw-r--r--drivers/net/wireless/libertas/cfg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c
index 317f086ced0a..1bbdb14f7d76 100644
--- a/drivers/net/wireless/libertas/cfg.c
+++ b/drivers/net/wireless/libertas/cfg.c
@@ -481,7 +481,6 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
481 struct cmd_ds_802_11_scan_rsp *scanresp = (void *)resp; 481 struct cmd_ds_802_11_scan_rsp *scanresp = (void *)resp;
482 int bsssize; 482 int bsssize;
483 const u8 *pos; 483 const u8 *pos;
484 u16 nr_sets;
485 const u8 *tsfdesc; 484 const u8 *tsfdesc;
486 int tsfsize; 485 int tsfsize;
487 int i; 486 int i;
@@ -490,12 +489,11 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
490 lbs_deb_enter(LBS_DEB_CFG80211); 489 lbs_deb_enter(LBS_DEB_CFG80211);
491 490
492 bsssize = get_unaligned_le16(&scanresp->bssdescriptsize); 491 bsssize = get_unaligned_le16(&scanresp->bssdescriptsize);
493 nr_sets = le16_to_cpu(scanresp->nr_sets);
494 492
495 lbs_deb_scan("scan response: %d BSSs (%d bytes); resp size %d bytes\n", 493 lbs_deb_scan("scan response: %d BSSs (%d bytes); resp size %d bytes\n",
496 nr_sets, bsssize, le16_to_cpu(resp->size)); 494 scanresp->nr_sets, bsssize, le16_to_cpu(resp->size));
497 495
498 if (nr_sets == 0) { 496 if (scanresp->nr_sets == 0) {
499 ret = 0; 497 ret = 0;
500 goto done; 498 goto done;
501 } 499 }