diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-28 11:29:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:57 -0500 |
commit | dd1d12dabfeb123881b0c813d0b7d3585312bacd (patch) | |
tree | f7b9d23da8393d34a46400f7ffb36cde6bce8ce6 /drivers/net/wireless/libertas/scan.c | |
parent | 01affb653077d8581552d566276b405237636e5c (diff) |
libertas: remove numprobes
Remove the ability to specify number of probes 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 | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 4e465bb4fd6..de9c548cb6a 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c | |||
@@ -41,7 +41,6 @@ | |||
41 | 41 | ||
42 | //! Maximum memory needed for a lbs_scan_cmd_config with all TLVs at max | 42 | //! Maximum memory needed for a lbs_scan_cmd_config with all TLVs at max |
43 | #define MAX_SCAN_CFG_ALLOC (sizeof(struct lbs_scan_cmd_config) \ | 43 | #define MAX_SCAN_CFG_ALLOC (sizeof(struct lbs_scan_cmd_config) \ |
44 | + sizeof(struct mrvlietypes_numprobes) \ | ||
45 | + CHAN_TLV_MAX_SIZE \ | 44 | + CHAN_TLV_MAX_SIZE \ |
46 | + SSID_TLV_MAX_SIZE) | 45 | + SSID_TLV_MAX_SIZE) |
47 | 46 | ||
@@ -385,7 +384,6 @@ void lbs_scan_worker(struct work_struct *work) | |||
385 | * - channel list | 384 | * - channel list |
386 | * | 385 | * |
387 | * If the SSID or BSSID filter is not present, disable/clear the filter. | 386 | * If the SSID or BSSID filter is not present, disable/clear the filter. |
388 | * If the number of probes is not set, use the adapter default setting | ||
389 | * Qualify the channel | 387 | * Qualify the channel |
390 | * | 388 | * |
391 | * @param priv A pointer to struct lbs_private structure | 389 | * @param priv A pointer to struct lbs_private structure |
@@ -415,11 +413,9 @@ lbs_scan_setup_scan_config(struct lbs_private *priv, | |||
415 | u8 * pfilteredscan, | 413 | u8 * pfilteredscan, |
416 | u8 * pscancurrentonly) | 414 | u8 * pscancurrentonly) |
417 | { | 415 | { |
418 | struct mrvlietypes_numprobes *pnumprobestlv; | ||
419 | struct mrvlietypes_ssidparamset *pssidtlv; | 416 | struct mrvlietypes_ssidparamset *pssidtlv; |
420 | struct lbs_scan_cmd_config *pscancfgout = NULL; | 417 | struct lbs_scan_cmd_config *pscancfgout = NULL; |
421 | u8 *ptlvpos; | 418 | u8 *ptlvpos; |
422 | u16 numprobes; | ||
423 | int chanidx; | 419 | int chanidx; |
424 | int scantype; | 420 | int scantype; |
425 | int scandur; | 421 | int scandur; |
@@ -468,9 +464,6 @@ lbs_scan_setup_scan_config(struct lbs_private *priv, | |||
468 | pscancfgout->bsstype = | 464 | pscancfgout->bsstype = |
469 | puserscanin->bsstype ? puserscanin->bsstype : CMD_BSS_TYPE_ANY; | 465 | puserscanin->bsstype ? puserscanin->bsstype : CMD_BSS_TYPE_ANY; |
470 | 466 | ||
471 | /* Set the number of probes to send, use adapter setting if unset */ | ||
472 | numprobes = puserscanin->numprobes ? puserscanin->numprobes : 0; | ||
473 | |||
474 | /* | 467 | /* |
475 | * Set the BSSID filter to the incoming configuration, | 468 | * Set the BSSID filter to the incoming configuration, |
476 | * if non-zero. If not set, it will remain disabled (all zeros). | 469 | * if non-zero. If not set, it will remain disabled (all zeros). |
@@ -502,22 +495,11 @@ lbs_scan_setup_scan_config(struct lbs_private *priv, | |||
502 | } | 495 | } |
503 | } else { | 496 | } else { |
504 | pscancfgout->bsstype = CMD_BSS_TYPE_ANY; | 497 | pscancfgout->bsstype = CMD_BSS_TYPE_ANY; |
505 | numprobes = 0; | ||
506 | } | ||
507 | |||
508 | /* If the input config or adapter has the number of Probes set, add tlv */ | ||
509 | if (numprobes) { | ||
510 | pnumprobestlv = (struct mrvlietypes_numprobes *) ptlvpos; | ||
511 | pnumprobestlv->header.type = cpu_to_le16(TLV_TYPE_NUMPROBES); | ||
512 | pnumprobestlv->header.len = cpu_to_le16(2); | ||
513 | pnumprobestlv->numprobes = cpu_to_le16(numprobes); | ||
514 | |||
515 | ptlvpos += sizeof(*pnumprobestlv); | ||
516 | } | 498 | } |
517 | 499 | ||
518 | /* | 500 | /* |
519 | * Set the output for the channel TLV to the address in the tlv buffer | 501 | * Set the output for the channel TLV to the address in the tlv buffer |
520 | * past any TLVs that were added in this fuction (SSID, numprobes). | 502 | * past any TLVs that were added in this fuction (SSID). |
521 | * channel TLVs will be added past this for each scan command, preserving | 503 | * channel TLVs will be added past this for each scan command, preserving |
522 | * the TLVs that were previously added. | 504 | * the TLVs that were previously added. |
523 | */ | 505 | */ |