diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-28 11:30:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:58 -0500 |
commit | a7d0adae40d0effc1484261a66fb703eb7e840b5 (patch) | |
tree | e3ee3d27bee433c56a57cba2f773ce1533d9b06f /drivers/net/wireless/libertas/scan.c | |
parent | dd1d12dabfeb123881b0c813d0b7d3585312bacd (diff) |
libertas: remove user-specified channel list
Remove the ability to specify channels to scan via debugfs
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/scan.c')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 59 |
1 files changed, 2 insertions, 57 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index de9c548cb6a5..236bc7daf4de 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -416,11 +416,6 @@ lbs_scan_setup_scan_config(struct lbs_private *priv, | |||
416 | struct mrvlietypes_ssidparamset *pssidtlv; | 416 | struct mrvlietypes_ssidparamset *pssidtlv; |
417 | struct lbs_scan_cmd_config *pscancfgout = NULL; | 417 | struct lbs_scan_cmd_config *pscancfgout = NULL; |
418 | u8 *ptlvpos; | 418 | u8 *ptlvpos; |
419 | int chanidx; | ||
420 | int scantype; | ||
421 | int scandur; | ||
422 | int channel; | ||
423 | int radiotype; | ||
424 | 419 | ||
425 | lbs_deb_enter(LBS_DEB_SCAN); | 420 | lbs_deb_enter(LBS_DEB_SCAN); |
426 | 421 | ||
@@ -505,58 +500,8 @@ lbs_scan_setup_scan_config(struct lbs_private *priv, | |||
505 | */ | 500 | */ |
506 | *ppchantlvout = (struct mrvlietypes_chanlistparamset *) ptlvpos; | 501 | *ppchantlvout = (struct mrvlietypes_chanlistparamset *) ptlvpos; |
507 | 502 | ||
508 | if (!puserscanin || !puserscanin->chanlist[0].channumber) { | 503 | lbs_scan_create_channel_list(priv, pscanchanlist, |
509 | /* Create a default channel scan list */ | 504 | *pfilteredscan); |
510 | lbs_deb_scan("creating full region channel list\n"); | ||
511 | lbs_scan_create_channel_list(priv, pscanchanlist, | ||
512 | *pfilteredscan); | ||
513 | goto out; | ||
514 | } | ||
515 | |||
516 | for (chanidx = 0; | ||
517 | chanidx < LBS_IOCTL_USER_SCAN_CHAN_MAX | ||
518 | && puserscanin->chanlist[chanidx].channumber; chanidx++) { | ||
519 | |||
520 | channel = puserscanin->chanlist[chanidx].channumber; | ||
521 | (pscanchanlist + chanidx)->channumber = channel; | ||
522 | |||
523 | radiotype = puserscanin->chanlist[chanidx].radiotype; | ||
524 | (pscanchanlist + chanidx)->radiotype = radiotype; | ||
525 | |||
526 | scantype = puserscanin->chanlist[chanidx].scantype; | ||
527 | |||
528 | if (scantype == CMD_SCAN_TYPE_PASSIVE) { | ||
529 | (pscanchanlist + | ||
530 | chanidx)->chanscanmode.passivescan = 1; | ||
531 | } else { | ||
532 | (pscanchanlist + | ||
533 | chanidx)->chanscanmode.passivescan = 0; | ||
534 | } | ||
535 | |||
536 | if (puserscanin->chanlist[chanidx].scantime) { | ||
537 | scandur = puserscanin->chanlist[chanidx].scantime; | ||
538 | } else { | ||
539 | if (scantype == CMD_SCAN_TYPE_PASSIVE) { | ||
540 | scandur = MRVDRV_PASSIVE_SCAN_CHAN_TIME; | ||
541 | } else { | ||
542 | scandur = MRVDRV_ACTIVE_SCAN_CHAN_TIME; | ||
543 | } | ||
544 | } | ||
545 | |||
546 | (pscanchanlist + chanidx)->minscantime = | ||
547 | cpu_to_le16(scandur); | ||
548 | (pscanchanlist + chanidx)->maxscantime = | ||
549 | cpu_to_le16(scandur); | ||
550 | } | ||
551 | |||
552 | /* Check if we are only scanning the current channel */ | ||
553 | if ((chanidx == 1) && | ||
554 | (puserscanin->chanlist[0].channumber == | ||
555 | priv->adapter->curbssparams.channel)) { | ||
556 | *pscancurrentonly = 1; | ||
557 | lbs_deb_scan("scanning current channel only"); | ||
558 | } | ||
559 | |||
560 | out: | 505 | out: |
561 | return pscancfgout; | 506 | return pscancfgout; |
562 | } | 507 | } |