diff options
author | brooks <brooks@FreeBSD.org> | 2002-04-14 23:18:40 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2002-04-14 23:18:40 +0000 |
commit | 2ff28d13ad521facf74c76edf050d83053409768 (patch) | |
tree | 1e3a02f14be5f4f22ab6a058e05941e527a36593 /sys/dev | |
parent | 62a877b86fcab8a7828ac4830ff58c70ab7de16d (diff) | |
download | FreeBSD-src-2ff28d13ad521facf74c76edf050d83053409768.zip FreeBSD-src-2ff28d13ad521facf74c76edf050d83053409768.tar.gz |
Fix tx-rate setting for Lucent cards.
Submitted by: Eugene Perevyazko <john@pcs.dp.ua>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/wi/if_wi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 50364c7..15862ca 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -1163,6 +1163,21 @@ wi_write_record(sc, ltv) ltv = &p2ltv; break; } + } else { + /* LUCENT */ + switch (ltv->wi_type) { + case WI_RID_TX_RATE: + switch (ltv->wi_val) { + case 1: ltv->wi_val = 1; break; /* 1Mb/s fixed */ + case 2: ltv->wi_val = 2; break; /* 2Mb/s fixed */ + case 3: ltv->wi_val = 3; break; /* 11Mb/s auto */ + case 5: ltv->wi_val = 4; break; /* 5.5Mb/s fixed */ + case 6: ltv->wi_val = 6; break; /* 2Mb/s auto */ + case 7: ltv->wi_val = 7; break; /* 5.5Mb/s auto */ + case 11: ltv->wi_val = 5; break; /* 11Mb/s fixed */ + default: return EINVAL; + } + } } if (wi_seek(sc, ltv->wi_type, 0, WI_BAP1)) |