rt2x00: Gather channel information in structure
Channel information which is read from EEPROM should be read into an array containing per-channel information. This removes the requirement of multiple arrays and makes the channel handling a bit cleaner and easier to expand. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
906c110fcc
commit
8c5e7a5f59
@@ -245,6 +245,10 @@ config:
|
||||
memcpy(&libconf.rf,
|
||||
&rt2x00dev->spec.channels[conf->channel->hw_value],
|
||||
sizeof(libconf.rf));
|
||||
|
||||
memcpy(&libconf.channel,
|
||||
&rt2x00dev->spec.channels_info[conf->channel->hw_value],
|
||||
sizeof(libconf.channel));
|
||||
}
|
||||
|
||||
if (flags & CONFIG_UPDATE_ANTENNA) {
|
||||
|
Reference in New Issue
Block a user