Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #612: fix-channelswitch.diff

File fix-channelswitch.diff, 0.8 kB (added by tjalling.hattink@ti-wmc.nl, 13 years ago)

Patch for fixing channel switch check

  • net80211/ieee80211_wireless.c

    old new  
    707707                        if (vap->iv_opmode == IEEE80211_M_HOSTAP) 
    708708                                return -EINVAL; 
    709709                } 
    710                 if (vap->iv_state == IEEE80211_S_RUN && c == ic->ic_bsschan) 
     710                /* 
     711                 * Check if the channel doesn't change at all. Only check  
     712                 * this when we are not in monitor or wds mode, otherwise 
     713                 * the ic_bsschan field is not valid at all. 
     714                 */ 
     715                if (vap->iv_opmode != IEEE80211_M_MONITOR && 
     716                        vap->iv_opmode != IEEE80211_M_WDS && 
     717                        vap->iv_state == IEEE80211_S_RUN && 
     718                        c == ic->ic_bsschan) 
    711719                        return 0;                       /* no change, return */ 
    712720 
    713721                /* Don't allow to change to channel with radar found */