Browse Source

Use _irqsafe versions of ieee80211 rx and tx_status functions

Jouni Malinen 17 years ago
parent
commit
2b5ac52ee0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mac80211_hwsim/mac80211_hwsim.c

+ 2 - 2
mac80211_hwsim/mac80211_hwsim.c

@@ -185,14 +185,14 @@ static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
 		if (nskb == NULL)
 			continue;
 
-		ieee80211_rx(hwsim_radios[i], nskb, &rx_status);
+		ieee80211_rx_irqsafe(hwsim_radios[i], nskb, &rx_status);
 	}
 
 	memset(&tx_status, 0, sizeof(tx_status));
 	memcpy(&tx_status.control, control, sizeof(*control));
 	/* TODO: proper ACK determination */
 	tx_status.flags = IEEE80211_TX_STATUS_ACK;
-	ieee80211_tx_status(hw, skb, &tx_status);
+	ieee80211_tx_status_irqsafe(hw, skb, &tx_status);
 	return NETDEV_TX_OK;
 }