|
@@ -516,6 +516,20 @@ static struct iwl_mvm_phy_ctxt *iwl_mvm_get_free_phy_ctxt(struct iwl_mvm *mvm)
|
|
|
return NULL;
|
|
return NULL;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+static int iwl_mvm_set_tx_power(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
|
|
+ s8 tx_power)
|
|
|
|
|
+{
|
|
|
|
|
+ /* FW is in charge of regulatory enforcement */
|
|
|
|
|
+ struct iwl_reduce_tx_power_cmd reduce_txpwr_cmd = {
|
|
|
|
|
+ .mac_context_id = iwl_mvm_vif_from_mac80211(vif)->id,
|
|
|
|
|
+ .pwr_restriction = cpu_to_le16(tx_power),
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ return iwl_mvm_send_cmd_pdu(mvm, REDUCE_TX_POWER_CMD, CMD_SYNC,
|
|
|
|
|
+ sizeof(reduce_txpwr_cmd),
|
|
|
|
|
+ &reduce_txpwr_cmd);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static int iwl_mvm_mac_add_interface(struct ieee80211_hw *hw,
|
|
static int iwl_mvm_mac_add_interface(struct ieee80211_hw *hw,
|
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
|
{
|
|
{
|
|
@@ -736,20 +750,6 @@ out_release:
|
|
|
mutex_unlock(&mvm->mutex);
|
|
mutex_unlock(&mvm->mutex);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-static int iwl_mvm_set_tx_power(struct iwl_mvm *mvm, struct ieee80211_vif *vif,
|
|
|
|
|
- s8 tx_power)
|
|
|
|
|
-{
|
|
|
|
|
- /* FW is in charge of regulatory enforcement */
|
|
|
|
|
- struct iwl_reduce_tx_power_cmd reduce_txpwr_cmd = {
|
|
|
|
|
- .mac_context_id = iwl_mvm_vif_from_mac80211(vif)->id,
|
|
|
|
|
- .pwr_restriction = cpu_to_le16(tx_power),
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- return iwl_mvm_send_cmd_pdu(mvm, REDUCE_TX_POWER_CMD, CMD_SYNC,
|
|
|
|
|
- sizeof(reduce_txpwr_cmd),
|
|
|
|
|
- &reduce_txpwr_cmd);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
static int iwl_mvm_mac_config(struct ieee80211_hw *hw, u32 changed)
|
|
static int iwl_mvm_mac_config(struct ieee80211_hw *hw, u32 changed)
|
|
|
{
|
|
{
|
|
|
return 0;
|
|
return 0;
|