mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 23:23:53 +02:00
staging: vt6656: [BUG] BBvUpdatePreEDThreshold Always set sensitivity on bScanning
commit 8f248dae13 upstream.
byBBPreEDIndex value is initially 0, this means that from
cold BBvUpdatePreEDThreshold is never set.
This means that sensitivity may be in an ambiguous state,
failing to scan any wireless points or at least distant ones.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a8fb5c2d18
commit
cbd508ca3c
|
|
@ -1466,7 +1466,6 @@ void BBvUpdatePreEDThreshold(struct vnt_private *pDevice, int bScanning)
|
|||
|
||||
if( bScanning )
|
||||
{ // need Max sensitivity //RSSI -69, -70,....
|
||||
if(pDevice->byBBPreEDIndex == 0) break;
|
||||
pDevice->byBBPreEDIndex = 0;
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xC9, 0x00); //CR201(0xC9)
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xCE, 0x30); //CR206(0xCE)
|
||||
|
|
@ -1609,7 +1608,6 @@ void BBvUpdatePreEDThreshold(struct vnt_private *pDevice, int bScanning)
|
|||
|
||||
if( bScanning )
|
||||
{ // need Max sensitivity //RSSI -69, -70, ...
|
||||
if(pDevice->byBBPreEDIndex == 0) break;
|
||||
pDevice->byBBPreEDIndex = 0;
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xC9, 0x00); //CR201(0xC9)
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xCE, 0x24); //CR206(0xCE)
|
||||
|
|
@ -1761,7 +1759,6 @@ void BBvUpdatePreEDThreshold(struct vnt_private *pDevice, int bScanning)
|
|||
case RF_VT3342A0: //RobertYu:20060627, testing table
|
||||
if( bScanning )
|
||||
{ // need Max sensitivity //RSSI -67, -68, ...
|
||||
if(pDevice->byBBPreEDIndex == 0) break;
|
||||
pDevice->byBBPreEDIndex = 0;
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xC9, 0x00); //CR201(0xC9)
|
||||
ControlvWriteByte(pDevice, MESSAGE_REQUEST_BBREG, 0xCE, 0x38); //CR206(0xCE)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user