the present invention enhances the dynamic frequency selection 9dfs ) algorithms used in wireless lans by adding a channel swapping mechanism . the aim of the traditional dfs algorithm is to dynamically select channels in a wireless lan in such a way that the best performance is achieved . however , not always the optimal channel selection is achieved . this invention describes an addition to the dfs algorithm in such a way that two aps can decide to swap channels instead of one ap switching to another channel . to avoid the problem of sub - optimal channel selection , a requesting ap sends swap requests to other aps in order to sense the willingness of other aps to swap channels with the requesting ap .