Adam Baker reported that the prism2 ioctl removal changed behaviour in that now the selection order was the other way around as before. New API is planned but not done yet, so for now just use the first matching channel in any mode as was previous behaviour with an unset next_mode. Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> --- NB: untested patch, but I'm confident it will "fix" this behaviour change. net/mac80211/ieee80211_ioctl.c | 1 + 1 file changed, 1 insertion(+) --- wireless-dev.orig/net/mac80211/ieee80211_ioctl.c 2007-10-08 12:19:36.565111702 +0200 +++ wireless-dev/net/mac80211/ieee80211_ioctl.c 2007-10-08 12:20:33.185111702 +0200 @@ -306,6 +306,7 @@ int ieee80211_set_channel(struct ieee802 local->oper_channel = chan; local->oper_hw_mode = mode; set++; + break; } } } - 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