* Errors when firmware is missing @ 2007-07-07 16:27 Jon Smirl 2007-07-07 16:41 ` Johannes Berg 2007-07-07 18:08 ` Larry Finger 0 siblings, 2 replies; 9+ messages in thread From: Jon Smirl @ 2007-07-07 16:27 UTC (permalink / raw) To: linux-wireless I have a new Broadcom 4318 adapter (which has exactly the same issues with promiscuous mode). I didn't have the right firmware down for it and I received this error message when I did "ifconfig wlan up" SIOCSIFFLAGS: No such file or directory. This is not the most user friendly error message, but I did receive a log entry. I tried the same thing with the zd1211. In this case the wlan0 device didn't get created. Does it make sense to specify consistent behavior when the firmware is missing? -- Jon Smirl jonsmirl@gmail.com ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 16:27 Errors when firmware is missing Jon Smirl @ 2007-07-07 16:41 ` Johannes Berg 2007-07-07 17:24 ` Daniel Drake 2007-07-07 21:34 ` Dan Williams 2007-07-07 18:08 ` Larry Finger 1 sibling, 2 replies; 9+ messages in thread From: Johannes Berg @ 2007-07-07 16:41 UTC (permalink / raw) To: Jon Smirl; +Cc: linux-wireless [-- Attachment #1: Type: text/plain, Size: 974 bytes --] On Sat, 2007-07-07 at 12:27 -0400, Jon Smirl wrote: > I have a new Broadcom 4318 adapter (which has exactly the same issues > with promiscuous mode). Huh? That's really weird. > I didn't have the right firmware down for it > and I received this error message when I did "ifconfig wlan up" > SIOCSIFFLAGS: No such file or directory. This is not the most user > friendly error message, but I did receive a log entry. > > I tried the same thing with the zd1211. In this case the wlan0 device > didn't get created. > > Does it make sense to specify consistent behavior when the firmware is missing? It does, and I believe we've talked about it at the wireless summits, but I'm not aware that we've reached a conclusion. It would probably be nice to have an error message -EFIRMWARE or something; that for zd1211 no device is created is probably counter-productive, that way userspace will never know that a wireless adapter is plugged in. johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 16:41 ` Johannes Berg @ 2007-07-07 17:24 ` Daniel Drake 2007-07-10 22:58 ` Johannes Berg 2007-07-07 21:34 ` Dan Williams 1 sibling, 1 reply; 9+ messages in thread From: Daniel Drake @ 2007-07-07 17:24 UTC (permalink / raw) To: Johannes Berg; +Cc: Jon Smirl, linux-wireless Johannes Berg wrote: > that for zd1211 > no device is created is probably counter-productive, that way userspace > will never know that a wireless adapter is plugged in. This is fixed for zd1211rw in my latest bunch of patches. But it certainly wouldn't surprise me if future hardware/drivers are not able to create an interface before loading firmware. It implies that you have a way of reading the MAC address before uploading firmware. I only figured this out for zd1211 by reverse engineering the boot code to an extent. Daniel ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 17:24 ` Daniel Drake @ 2007-07-10 22:58 ` Johannes Berg 0 siblings, 0 replies; 9+ messages in thread From: Johannes Berg @ 2007-07-10 22:58 UTC (permalink / raw) To: Daniel Drake; +Cc: Jon Smirl, linux-wireless [-- Attachment #1: Type: text/plain, Size: 484 bytes --] On Sat, 2007-07-07 at 13:24 -0400, Daniel Drake wrote: > It implies that you have a way of reading the MAC address before > uploading firmware. I only figured this out for zd1211 by reverse > engineering the boot code to an extent. Hm. Good point. I sure hope no such devices ever show up ;) Or you just create a device with a fixed (but random locally assigned) MAC address. Or even better we globally define a locally assigned address for "no idea yet" :) johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 16:41 ` Johannes Berg 2007-07-07 17:24 ` Daniel Drake @ 2007-07-07 21:34 ` Dan Williams 2007-07-10 22:56 ` Johannes Berg 1 sibling, 1 reply; 9+ messages in thread From: Dan Williams @ 2007-07-07 21:34 UTC (permalink / raw) To: Johannes Berg; +Cc: Jon Smirl, linux-wireless On Sat, 2007-07-07 at 18:41 +0200, Johannes Berg wrote: > On Sat, 2007-07-07 at 12:27 -0400, Jon Smirl wrote: > > I have a new Broadcom 4318 adapter (which has exactly the same issues > > with promiscuous mode). > > Huh? That's really weird. > > > I didn't have the right firmware down for it > > and I received this error message when I did "ifconfig wlan up" > > SIOCSIFFLAGS: No such file or directory. This is not the most user > > friendly error message, but I did receive a log entry. > > > > I tried the same thing with the zd1211. In this case the wlan0 device > > didn't get created. > > > > Does it make sense to specify consistent behavior when the firmware is missing? > > It does, and I believe we've talked about it at the wireless summits, > but I'm not aware that we've reached a conclusion. It would probably be > nice to have an error message -EFIRMWARE or something; that for zd1211 > no device is created is probably counter-productive, that way userspace > will never know that a wireless adapter is plugged in. Drivers should be returning -ENOENT (the error from request_firmware() when the firmware isn't found) when userspace sets IFF_UP on the device, so that userspace has the faintest hope of intelligently informing the user. Dan ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 21:34 ` Dan Williams @ 2007-07-10 22:56 ` Johannes Berg 0 siblings, 0 replies; 9+ messages in thread From: Johannes Berg @ 2007-07-10 22:56 UTC (permalink / raw) To: Dan Williams; +Cc: Jon Smirl, linux-wireless [-- Attachment #1: Type: text/plain, Size: 415 bytes --] On Sat, 2007-07-07 at 17:34 -0400, Dan Williams wrote: > Drivers should be returning -ENOENT (the error from request_firmware() > when the firmware isn't found) when userspace sets IFF_UP on the device, > so that userspace has the faintest hope of intelligently informing the > user. Makes sense to me. Since it knows which driver is used it could even tell the user where to get firmware :P johannes [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 190 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 16:27 Errors when firmware is missing Jon Smirl 2007-07-07 16:41 ` Johannes Berg @ 2007-07-07 18:08 ` Larry Finger 2007-07-07 18:37 ` Michael Buesch 1 sibling, 1 reply; 9+ messages in thread From: Larry Finger @ 2007-07-07 18:08 UTC (permalink / raw) To: Jon Smirl; +Cc: linux-wireless Jon Smirl wrote: > I have a new Broadcom 4318 adapter (which has exactly the same issues > with promiscuous mode). I didn't have the right firmware down for it > and I received this error message when I did "ifconfig wlan up" > SIOCSIFFLAGS: No such file or directory. This is not the most user > friendly error message, but I did receive a log entry. If the firmware did not load correctly, the bcm43xx driver logs appropriate messages. This error would have been encountered and logged when the interface was brought up. Is that what you meant when you say that you received a log entry? The ifconfig error message is output by the user code, and is not controlled by any driver. For me, the BCM4318 works in promiscuous mode. I regularly use both the 4318 and a 4311 with Kismet for testing. What kernel version were you using? If older than 2.6.21, was it patched? Larry ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 18:08 ` Larry Finger @ 2007-07-07 18:37 ` Michael Buesch 2007-07-07 21:33 ` Dan Williams 0 siblings, 1 reply; 9+ messages in thread From: Michael Buesch @ 2007-07-07 18:37 UTC (permalink / raw) To: Larry Finger; +Cc: Jon Smirl, linux-wireless On Saturday 07 July 2007 20:08:50 Larry Finger wrote: > Jon Smirl wrote: > > I have a new Broadcom 4318 adapter (which has exactly the same issues > > with promiscuous mode). I didn't have the right firmware down for it > > and I received this error message when I did "ifconfig wlan up" > > SIOCSIFFLAGS: No such file or directory. This is not the most user > > friendly error message, but I did receive a log entry. > > If the firmware did not load correctly, the bcm43xx driver logs appropriate messages. This error > would have been encountered and logged when the interface was brought up. Is that what you meant > when you say that you received a log entry? The ifconfig error message is output by the user code, > and is not controlled by any driver. Well it is. It's -ENOENT, which we return in the driver. I'd like to return, -ENOFIRMWARE, but there's no such error. So I selected the most sane error code (to me), which says file not found... -- Greetings Michael. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Errors when firmware is missing 2007-07-07 18:37 ` Michael Buesch @ 2007-07-07 21:33 ` Dan Williams 0 siblings, 0 replies; 9+ messages in thread From: Dan Williams @ 2007-07-07 21:33 UTC (permalink / raw) To: Michael Buesch; +Cc: Larry Finger, Jon Smirl, linux-wireless On Sat, 2007-07-07 at 20:37 +0200, Michael Buesch wrote: > On Saturday 07 July 2007 20:08:50 Larry Finger wrote: > > Jon Smirl wrote: > > > I have a new Broadcom 4318 adapter (which has exactly the same issues > > > with promiscuous mode). I didn't have the right firmware down for it > > > and I received this error message when I did "ifconfig wlan up" > > > SIOCSIFFLAGS: No such file or directory. This is not the most user > > > friendly error message, but I did receive a log entry. > > > > If the firmware did not load correctly, the bcm43xx driver logs appropriate messages. This error > > would have been encountered and logged when the interface was brought up. Is that what you meant > > when you say that you received a log entry? The ifconfig error message is output by the user code, > > and is not controlled by any driver. > > Well it is. It's -ENOENT, which we return in the driver. > I'd like to return, -ENOFIRMWARE, but there's no such error. > So I selected the most sane error code (to me), which says > file not found... This should be what all drivers do; if, when setting IFF_UP, the device can't find firmware, it should return -ENOENT, which is the return code from request_firmware() when it fails to find the firmware. Thus, userspace can detect that firmware is missing and attempt to intelligently inform the user. Dan ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2007-07-11 9:40 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-07-07 16:27 Errors when firmware is missing Jon Smirl 2007-07-07 16:41 ` Johannes Berg 2007-07-07 17:24 ` Daniel Drake 2007-07-10 22:58 ` Johannes Berg 2007-07-07 21:34 ` Dan Williams 2007-07-10 22:56 ` Johannes Berg 2007-07-07 18:08 ` Larry Finger 2007-07-07 18:37 ` Michael Buesch 2007-07-07 21:33 ` Dan Williams
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.