linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mode selection in mac80211
@ 2007-10-05 22:19 Adam Baker
  2007-10-08  9:55 ` Johannes Berg
  0 siblings, 1 reply; 17+ messages in thread
From: Adam Baker @ 2007-10-05 22:19 UTC (permalink / raw)
  To: linux-wireless; +Cc: rt2400-devel

I've observed an undesirable change in behaviour of rt2x00 as a result of 
Johannes Berg's patch 3d4803379613c763f5a7863e8249b63d190af5e6
(remove all prism2 ioctls).

It used to consistently default to 802.11g mode on g capable hardware. Because 
that patch removed the lines

-                               /* Use next_mode as the mode preference to
-                                * resolve non-unique channel numbers. */
-                               if (set && mode->mode != local->next_mode)
-                                       continue;

in ieee80211_set_channel it now defaults to 11b unless I change the code that 
calls ieee80211_register_hwmode. (I realise that the next_mode test is no 
longer "right").

This is because ieee80211_set_channel will now prefer to select whichever was 
the last mode for which the driver called ieee80211_register_hwmode whereas 
the previous behaviour preferred the first registered mode. It seems as 
though if there was a way to avoid calling Iieee80211_set_channel then the 
setting of oper_hw_mode in ieee80211_register_hwmode would still prefer the 
first registered mode.

Is it intended that the order of calling ieee80211_register_hwmode should 
determine which mode should be preferred when multiple modes exist on the 
same channel or is there either already or planned a better option for driver 
writers? If calling order should determine preference should it be first or 
last registered?

Adam Baker

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2007-10-09 18:04 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-05 22:19 Mode selection in mac80211 Adam Baker
2007-10-08  9:55 ` Johannes Berg
2007-10-08 10:23   ` [PATCH] mac80211: fix set_channel regression Johannes Berg
2007-10-08 14:32   ` Mode selection in mac80211 Mike Kershaw
2007-10-09  9:21     ` Johannes Berg
2007-10-09 13:55       ` Mike Kershaw
2007-10-09 17:06         ` Johannes Berg
2007-10-08 21:08   ` [Rt2400-devel] " Ivo van Doorn
2007-10-09  9:20     ` Johannes Berg
2007-10-09 14:27       ` Ivo van Doorn
2007-10-09 17:05         ` Johannes Berg
2007-10-09 17:32           ` Ivo van Doorn
2007-10-09 17:29             ` Johannes Berg
2007-10-09 17:54               ` Ivo van Doorn
2007-10-09 17:40                 ` Johannes Berg
2007-10-09 18:18                   ` Ivo van Doorn
2007-10-09 18:05                     ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).