1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
--- a/common/rtmp_mcu.c 2012-03-26 11:55:22.000000000 +0200
+++ b/common/rtmp_mcu.c 2016-08-18 21:24:18.389453577 +0200
@@ -441,7 +441,7 @@
#ifdef CONFIG_STA_SUPPORT
#ifdef PCIE_PS_SUPPORT
- ULONG Configuration;
+ u16 Configuration;
ULONG offset;
#endif /* PCIE_PS_SUPPORT */
#endif /* CONFIG_STA_SUPPORT */
@@ -556,10 +556,8 @@
{
offset = 0x70F;
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);
- Configuration=le2cpu16(Configuration);
- Configuration &= 0xffffff00;
+ Configuration &= 0xff00;
Configuration |= (0x13); /* set Latency to default */
- Configuration=le2cpu16(Configuration);
pci_write_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, Configuration);
DBGPRINT(RT_DEBUG_TRACE, ("Write 70f; offset = %x, Configuration = %x. \n", offset, Configuration));
}
@@ -576,11 +574,9 @@
offset = 0x70F;
/* Configuration = RTMPReadCBConfigXP(pAd, offset); */
pci_read_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, &Configuration);
- Configuration=le2cpu16(Configuration);
- Configuration &= 0xffffff00;
+ Configuration &= 0xff00;
Configuration |= (0x7F); // Set to long latency
- Configuration=le2cpu16(Configuration);
pci_write_config_word(((POS_COOKIE)pAd->OS_Cookie)->pci_dev, offset, Configuration);
|