Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102961
b: refs/heads/master
c: f248f10
h: refs/heads/master
i:
  102959: 5177e66
v: v3
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Jun 14, 2008
1 parent 3fb6d41 commit 8ae993b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba77f1abde3999e45d92c0ba4e0356f7498e959f
refs/heads/master: f248f10515dc7279120adf2d3eabcac9561fb1b4
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ static void mac80211_hwsim_monitor_rx(struct ieee80211_hw *hw,
hdr->hdr.it_version = PKTHDR_RADIOTAP_VERSION;
hdr->hdr.it_pad = 0;
hdr->hdr.it_len = cpu_to_le16(sizeof(*hdr));
hdr->hdr.it_present = __constant_cpu_to_le32(
(1 << IEEE80211_RADIOTAP_FLAGS) |
(1 << IEEE80211_RADIOTAP_RATE) |
(1 << IEEE80211_RADIOTAP_CHANNEL));
hdr->hdr.it_present = cpu_to_le32((1 << IEEE80211_RADIOTAP_FLAGS) |
(1 << IEEE80211_RADIOTAP_RATE) |
(1 << IEEE80211_RADIOTAP_CHANNEL));
hdr->rt_flags = 0;
hdr->rt_rate = txrate->bitrate / 5;
hdr->rt_channel = data->channel->center_freq;
Expand All @@ -139,7 +138,7 @@ static void mac80211_hwsim_monitor_rx(struct ieee80211_hw *hw,
skb_set_mac_header(skb, 0);
skb->ip_summed = CHECKSUM_UNNECESSARY;
skb->pkt_type = PACKET_OTHERHOST;
skb->protocol = __constant_htons(ETH_P_802_2);
skb->protocol = htons(ETH_P_802_2);
memset(skb->cb, 0, sizeof(skb->cb));
netif_rx(skb);
}
Expand Down Expand Up @@ -309,7 +308,8 @@ static void mac80211_hwsim_beacon(unsigned long arg)
if (!data->started || !data->radio_enabled)
return;

ieee80211_iterate_active_interfaces(hw, mac80211_hwsim_beacon_tx, hw);
ieee80211_iterate_active_interfaces_atomic(
hw, mac80211_hwsim_beacon_tx, hw);

data->beacon_timer.expires = jiffies + data->beacon_int;
add_timer(&data->beacon_timer);
Expand Down

0 comments on commit 8ae993b

Please sign in to comment.