Use _irqsafe versions of ieee80211 rx and tx_status functions
authorJouni Malinen <j@w1.fi>
Tue, 10 Jun 2008 16:28:39 +0000 (19:28 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 10 Jun 2008 16:28:39 +0000 (19:28 +0300)
mac80211_hwsim/mac80211_hwsim.c

index 3753421..219ae21 100644 (file)
@@ -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;
 }