summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmar Singhal <asinghal@qca.qualcomm.com>2014-04-24 11:47:55 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-04-26 00:48:13 -0700
commit384e86c85a1f23a37b1c394917dacdb7a1434e7b (patch)
tree5920b69e9529cf5a29d9712f2b34f0110f95a0f8
parentdf0e9a41b9252cc2eac8f2a41a329ef2aaecbafe (diff)
qcacld-new: Correct the assignment of tx power
Correct the assignment of tx power when CUSTOM_REGULATORY is defined. CRs-Fixed: 654169 Change-Id: I14909dbcca9076b3a026683f8460e3e9cb5d075c
-rw-r--r--CORE/VOSS/src/vos_nvitem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/CORE/VOSS/src/vos_nvitem.c b/CORE/VOSS/src/vos_nvitem.c
index c19304e84657..4ad1100a4cb4 100644
--- a/CORE/VOSS/src/vos_nvitem.c
+++ b/CORE/VOSS/src/vos_nvitem.c
@@ -3278,7 +3278,8 @@ static int create_linux_regulatory_entry(struct wiphy *wiphy,
wiphy->bands[i]->channels[j].flags &= ~IEEE80211_CHAN_NO_IBSS;
}
- wiphy->bands[i]->channels[j].max_power = reg_rule->power_rule.max_eirp;
+ wiphy->bands[i]->channels[j].max_power =
+ (int) MBM_TO_DBM(reg_rule->power_rule.max_eirp);
}
}