aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ti/wl18xx
diff options
context:
space:
mode:
authorIdo Reis <idor@ti.com>2012-05-13 15:27:17 +0300
committerLuciano Coelho <coelho@ti.com>2012-06-07 18:10:48 +0300
commit4085f641e704b1ff1a60f62756f49281a181f707 (patch)
tree45cb76401d252bfefd164e478ec23f51ab0dc342 /drivers/net/wireless/ti/wl18xx
parentwlcore: set channels 12-14 as pactive for sched scan (diff)
downloadlinux-dev-4085f641e704b1ff1a60f62756f49281a181f707.tar.xz
linux-dev-4085f641e704b1ff1a60f62756f49281a181f707.zip
wl18xx: fix PHY_INIT addresses mem size
was hardcoded 252, now uses the parameters struct size. Signed-off-by: Ido Reis <idor@ti.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx')
-rw-r--r--drivers/net/wireless/ti/wl18xx/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
index c8d45f011c63..e030b1297a2b 100644
--- a/drivers/net/wireless/ti/wl18xx/main.c
+++ b/drivers/net/wireless/ti/wl18xx/main.c
@@ -540,8 +540,8 @@ static const struct wlcore_partition_set wl18xx_ptable[PART_TABLE_LEN] = {
.mem3 = { .start = 0x00000000, .size = 0x00000000 },
},
[PART_PHY_INIT] = {
- /* TODO: use the phy_conf struct size here */
- .mem = { .start = 0x80926000, .size = 252 },
+ .mem = { .start = 0x80926000,
+ .size = sizeof(struct wl18xx_mac_and_phy_params) },
.reg = { .start = 0x00000000, .size = 0x00000000 },
.mem2 = { .start = 0x00000000, .size = 0x00000000 },
.mem3 = { .start = 0x00000000, .size = 0x00000000 },