Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=58a9ac17ed7a78958d03f3b4af107f0ef075cbed
Commit:     58a9ac17ed7a78958d03f3b4af107f0ef075cbed
Parent:     e797aa1b7da6bfcb2e19a10ae5ead9aa7aea732b
Author:     Johannes Berg <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 12 21:24:07 2007 +0200
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 20:58:12 2007 -0400

    [PATCH] mac80211: fix set_channel regression
    
    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 <[EMAIL PROTECTED]>
    Acked-by: Michael Wu <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 net/mac80211/ieee80211_ioctl.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index f0224c2..6b4b0d5 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -306,9 +306,12 @@ int ieee80211_set_channel(struct ieee80211_local *local, 
int channel, int freq)
                            ((chan->chan == channel) || (chan->freq == freq))) {
                                local->oper_channel = chan;
                                local->oper_hw_mode = mode;
-                               set++;
+                               set = 1;
+                               break;
                        }
                }
+               if (set)
+                       break;
        }
 
        if (set) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to