diff options
author | Luciano Coelho <coelho@ti.com> | 2012-05-10 05:14:18 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2012-06-05 08:58:54 -0400 |
commit | 7b03c306da4a5ae415036a16b1a5844ca42e2778 (patch) | |
tree | 19d08f470f64b482c904edc3340c5dac36d82b4c /drivers/net/wireless/ti/wl18xx/main.c | |
parent | 858403ab4434a3acd59eb892a49e1dbea30a2fcf (diff) |
wl18xx: export pwr_limit_reference_11_abg value as a module parameter
Yet another temporary module parameter requested by the firmware team.
This will be replaced by the conf binary.
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/main.c')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c index 6baeb26b79c8..524f44c4b991 100644 --- a/drivers/net/wireless/ti/wl18xx/main.c +++ b/drivers/net/wireless/ti/wl18xx/main.c | |||
@@ -53,6 +53,7 @@ static int low_band_component = -1; | |||
53 | static int low_band_component_type = -1; | 53 | static int low_band_component_type = -1; |
54 | static int high_band_component = -1; | 54 | static int high_band_component = -1; |
55 | static int high_band_component_type = -1; | 55 | static int high_band_component_type = -1; |
56 | static int pwr_limit_reference_11_abg = -1; | ||
56 | 57 | ||
57 | static const u8 wl18xx_rate_to_idx_2ghz[] = { | 58 | static const u8 wl18xx_rate_to_idx_2ghz[] = { |
58 | /* MCS rates are used only with 11n */ | 59 | /* MCS rates are used only with 11n */ |
@@ -1190,6 +1191,13 @@ int __devinit wl18xx_probe(struct platform_device *pdev) | |||
1190 | priv->conf.phy.high_band_component_type = | 1191 | priv->conf.phy.high_band_component_type = |
1191 | high_band_component_type; | 1192 | high_band_component_type; |
1192 | 1193 | ||
1194 | if (pwr_limit_reference_11_abg == -1) | ||
1195 | pwr_limit_reference_11_abg = | ||
1196 | priv->conf.phy.pwr_limit_reference_11_abg; | ||
1197 | else | ||
1198 | priv->conf.phy.pwr_limit_reference_11_abg = | ||
1199 | pwr_limit_reference_11_abg; | ||
1200 | |||
1193 | if (!checksum_param) { | 1201 | if (!checksum_param) { |
1194 | wl18xx_ops.set_rx_csum = NULL; | 1202 | wl18xx_ops.set_rx_csum = NULL; |
1195 | wl18xx_ops.init_vif = NULL; | 1203 | wl18xx_ops.init_vif = NULL; |
@@ -1270,6 +1278,10 @@ module_param(high_band_component_type, uint, S_IRUSR); | |||
1270 | MODULE_PARM_DESC(high_band_component_type, "High band component type: u8 " | 1278 | MODULE_PARM_DESC(high_band_component_type, "High band component type: u8 " |
1271 | "(default is 0x09)"); | 1279 | "(default is 0x09)"); |
1272 | 1280 | ||
1281 | module_param(pwr_limit_reference_11_abg, uint, S_IRUSR); | ||
1282 | MODULE_PARM_DESC(pwr_limit_reference_11_abg, "Power limit reference: u8 " | ||
1283 | "(default is 0xc8)"); | ||
1284 | |||
1273 | MODULE_LICENSE("GPL v2"); | 1285 | MODULE_LICENSE("GPL v2"); |
1274 | MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>"); | 1286 | MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>"); |
1275 | MODULE_FIRMWARE(WL18XX_FW_NAME); | 1287 | MODULE_FIRMWARE(WL18XX_FW_NAME); |