When setting the desired frequency of a VAP, check for differences against a previous...
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 14 Nov 2007 18:12:05 +0000 (18:12 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Wed, 14 Nov 2007 18:12:05 +0000 (18:12 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2849 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_wireless.c

index f7a0bc9f5656fb7c7729e6d576770b7b9e1d06e5..e20ca5f55791b9b3725b0e5c71c706b58d8801d4 100644 (file)
@@ -719,7 +719,7 @@ ieee80211_ioctl_siwfreq(struct net_device *dev, struct iw_request_info *info,
                        if (vap->iv_opmode == IEEE80211_M_HOSTAP)
                                return -EINVAL;
                }
-               if ((vap->iv_state == IEEE80211_S_RUN) && (c == ic->ic_bsschan))
+               if ((vap->iv_state == IEEE80211_S_RUN) && (c == vap->iv_des_chan))
                        return 0;                       /* no change, return */
 
                /* Don't allow to change to channel with radar found */