diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-07-10 23:22:26 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 19:05:12 (GMT) |
commit | 1a9b6679adfb8ef1f1f3dbb7ebd2ee72e2ea4b56 (patch) | |
tree | 2cb7507ba929d9214ef84d76dca2fe93285f7a35 /drivers/net/wireless/p54/main.c | |
parent | 596a07c18b35c9df2fb212856241ae0dfe3162b9 (diff) | |
download | linux-fsl-qoriq-1a9b6679adfb8ef1f1f3dbb7ebd2ee72e2ea4b56.tar.xz |
p54: generate channel list dynamically
This patch enhances the eeprom parser to generate customized
channel list for every device.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/main.c')
-rw-r--r-- | drivers/net/wireless/p54/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index c9a0545..f19add2 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c @@ -598,6 +598,10 @@ EXPORT_SYMBOL_GPL(p54_register_common); void p54_free_common(struct ieee80211_hw *dev) { struct p54_common *priv = dev->priv; + unsigned int i; + + for (i = 0; i < IEEE80211_NUM_BANDS; i++) + kfree(priv->band_table[i]); kfree(priv->iq_autocal); kfree(priv->output_limit); |