rt2x00: Remove ieee80211_rx_status from rt2x00_dev
rt2x00 was keeping a copy of ieee80211_rx_status embedded into the rt2x00_dev structure. For each RX frame, this structure was copied into the skb->cb where mac80211 would handle it further. However at the moment only the fields current band, and frequency were updated. Whereas the band was already provided directly within the rt2x00_dev structure. Save a memcpy action, and reduce memory a bit, by adding a curr_freq field to rt2x00_dev, and completely remove the ieee80211_rx_status structure from rt2x00_dev. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
0856d9c04a
commit
e5ef5bad34
@@ -201,10 +201,8 @@ void rt2x00lib_config(struct rt2x00_dev *rt2x00dev,
|
||||
rt2x00link_reset_tuner(rt2x00dev, false);
|
||||
|
||||
rt2x00dev->curr_band = conf->channel->band;
|
||||
rt2x00dev->curr_freq = conf->channel->center_freq;
|
||||
rt2x00dev->tx_power = conf->power_level;
|
||||
rt2x00dev->short_retry = conf->short_frame_max_tx_count;
|
||||
rt2x00dev->long_retry = conf->long_frame_max_tx_count;
|
||||
|
||||
rt2x00dev->rx_status.band = conf->channel->band;
|
||||
rt2x00dev->rx_status.freq = conf->channel->center_freq;
|
||||
}
|
||||
|
Reference in New Issue
Block a user