|
@@ -2217,6 +2217,18 @@ static void iwl_free_skb(struct iwl_op_mode *op_mode, struct sk_buff *skb)
|
|
|
dev_kfree_skb_any(skb);
|
|
|
}
|
|
|
|
|
|
+static void iwl_set_hw_rfkill_state(struct iwl_op_mode *op_mode, bool state)
|
|
|
+{
|
|
|
+ struct iwl_priv *priv = IWL_OP_MODE_GET_DVM(op_mode);
|
|
|
+
|
|
|
+ if (state)
|
|
|
+ set_bit(STATUS_RF_KILL_HW, &priv->status);
|
|
|
+ else
|
|
|
+ clear_bit(STATUS_RF_KILL_HW, &priv->status);
|
|
|
+
|
|
|
+ wiphy_rfkill_set_hw_state(priv->hw->wiphy, state);
|
|
|
+}
|
|
|
+
|
|
|
const struct iwl_op_mode_ops iwl_dvm_ops = {
|
|
|
.start = iwl_op_mode_dvm_start,
|
|
|
.stop = iwl_op_mode_dvm_stop,
|