Use _irqsafe versions of ieee80211 rx and tx_status functions

This commit is contained in:
Jouni Malinen 2008-06-10 19:28:39 +03:00
parent badba00bd4
commit 2b5ac52ee0

View file

@ -185,14 +185,14 @@ static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb,
if (nskb == NULL) if (nskb == NULL)
continue; 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)); memset(&tx_status, 0, sizeof(tx_status));
memcpy(&tx_status.control, control, sizeof(*control)); memcpy(&tx_status.control, control, sizeof(*control));
/* TODO: proper ACK determination */ /* TODO: proper ACK determination */
tx_status.flags = IEEE80211_TX_STATUS_ACK; 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; return NETDEV_TX_OK;
} }