summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 991aed4)
raw | patch | inline | side by side (parent: 991aed4)
wl18xx: export pwr_limit_reference_11_abg value as a module parameter jenkins-OpenLink_R8_AndroidDailyBuild-26
author | Luciano Coelho <coelho@ti.com> | |
Thu, 1 Mar 2012 09:05:24 +0000 (11:05 +0200) | ||
committer | Luciano Coelho <coelho@ti.com> | |
Thu, 1 Mar 2012 09:05:24 +0000 (11:05 +0200) |
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>
This will be replaced by the conf binary.
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl18xx/main.c | patch | blob | history |
index a6b1cf89096c3b22290bbff7977e7ba62403058b..d67b45e99f1d6b27453fcb779bdf053100395984 100644 (file)
static int low_band_component_type = -1;
static int high_band_component = -1;
static int high_band_component_type = -1;
+static int pwr_limit_reference_11_abg = -1;
static const u8 wl18xx_rate_to_idx_2ghz[] = {
/* MCS rates are used only with 11n */
priv->conf.phy.high_band_component_type =
high_band_component_type;
+ if (pwr_limit_reference_11_abg == -1)
+ pwr_limit_reference_11_abg =
+ priv->conf.phy.pwr_limit_reference_11_abg;
+ else
+ priv->conf.phy.pwr_limit_reference_11_abg =
+ pwr_limit_reference_11_abg;
+
if (!checksum_param) {
wl18xx_ops.set_rx_csum = NULL;
wl18xx_ops.init_vif = NULL;
MODULE_PARM_DESC(high_band_component_type, "High band component type: u8 "
"(default is 0x09)");
+module_param(pwr_limit_reference_11_abg, uint, S_IRUSR);
+MODULE_PARM_DESC(pwr_limit_reference_11_abg, "Power limit reference: u8 "
+ "(default is 0xc8)");
+
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Luciano Coelho <coelho@ti.com>");
MODULE_FIRMWARE(WL18XX_FW_NAME);