On Sun, Nov 2, 2008 at 11:54 PM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Sun, 2008-11-02 at 23:51 -0800, Luis R. Rodriguez wrote: >> On Sun, Nov 2, 2008 at 11:34 PM, Johannes Berg >> <johannes@xxxxxxxxxxxxxxxx> wrote: >> > On Sun, 2008-11-02 at 23:29 -0800, Luis R. Rodriguez wrote: >> > >> >> >> Not sure I agree with the WARN_ON() if the driver's mac80211 config() >> >> >> callback fails. In our case when we tune to a different channel we >> >> >> have to clear any DMA operations first and then we reset the chip. >> >> >> Reseting the chip can fail for whatever strange hw issue cases. The >> >> >> patch fixes the complaint but is the complaint sane? >> >> > >> >> > What's mac80211 to do when it fails? >> >> >> >> How about a shiny new nl80211 event? >> > >> > And wtf would userspace do? >> >> If multiple configuration attempts fail perhaps stop trying, and >> inform the user? > > But you're saying it's "normal" to get this failure, No, I'm just sayings its possible, right now mac80211 assumes its not and if it does its because we somehow lied to mac80211 of our capabilities. > so wouldn't it > always do that sooner or later and always say your hw is broken? Nope > Also, > that's a bad thing to do in userspace, imho. What should we do with these rare failures then? > Why can it fail here > anyway? Look at all the reasons for which a hw reset can fail for ath9k and ath5k. > hw borked is one obvious case, but it shouldn't happen enough > for this to be a problem yet. This I agree with. It is rare, its just possible, right now mac80211 assumes it never will. Luis -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html