#include <linux/proc_fs.h>
#include <linux/device.h>
#include <linux/moduleparam.h>
-#ifdef CONFIG_FW_LOADER
#include <linux/firmware.h>
-#endif
#include "ieee802_11.h"
#define DRIVER_MAJOR 0
-#define DRIVER_MINOR 7
+#define DRIVER_MINOR 8
MODULE_AUTHOR("Simon Kelley");
MODULE_DESCRIPTION("Support for Atmel at76c50x 802.11 wireless ethernet cards.");
range->num_channels = 0;
for (j = 0; j < sizeof(channel_table)/sizeof(channel_table[0]); j++)
if (priv->reg_domain == channel_table[j].reg_domain) {
- range->num_channels = channel_table[j].max - channel_table[j].min + 1;
+ range->num_channels = channel_table[j].max - channel_table[j].min + 1;
+ break;
}
if (range->num_channels != 0) {
for(k = 0, i = channel_table[j].min; i <= channel_table[j].max; i++) {
- range->freq[k].i = i + 1; /* List index */
- range->freq[k].m = frequency_list[i] * 100000;
+ range->freq[k].i = i; /* List index */
+ range->freq[k].m = frequency_list[i-1] * 100000;
range->freq[k++].e = 1; /* Values in table in MHz -> * 10^5 * 10 */
}
range->num_frequency = k;
if (priv->card_type == CARD_TYPE_EEPROM) {
/* copy in firmware if needed */
-#ifdef CONFIG_FW_LOADER
const struct firmware *fw_entry = NULL;
-#endif
unsigned char *fw;
int len = priv->firmware_length;
if (!(fw = priv->firmware)) {
-#ifdef CONFIG_FW_LOADER
if (strlen(priv->firmware_id) == 0) {
printk(KERN_INFO
"%s: card type is unknown: assuming at76c502 firmware is OK.\n",
}
fw = fw_entry->data;
len = fw_entry->size;
-#else
- printk(KERN_ALERT
- "%s: no firmware supplied, cannot start.\n", dev->name);
- return 0;
-#endif
}
if (len <= 0x6000) {
atmel_copy_to_card(priv->dev, 0x8000, &fw[0x6000], len - 0x6000);
}
-#ifdef CONFIG_FW_LOADER
if (fw_entry)
release_firmware(fw_entry);
-#endif
}
if (!atmel_wakeup_firmware(priv))
{ 0, 0, "SMC/2632W", "atmel_at76c502d.bin", "SMC 2632W-V3" },
{ 0xd601, 0x0007, NULL, "atmel_at76c502.bin", "Sitecom WLAN-011"}, /* suspect - from a usenet posting. */
{ 0x01bf, 0x3302, NULL, "atmel_at76c502d.bin", "Belkin F5D6060u"}, /* " " " " " */
+ { 0, 0, "BT/Voyager 1020 Laptop Adapter", "atmel_at76c502.bin", "BT Voyager 1020"}
};
/* This is strictly temporary, until PCMCIA devices get integrated into the device model. */