patch for channel 14

Grossfuss intiwa at gmail.com
Mon Apr 6 16:12:28 EDT 2009


Hello everyone,

sorry if this is not the canonical way to report bugs or submit  
patches, however, I would like to report a small bug that prevents  
correct usage of channel 14 on nl80211 interface.

Cheers,
-Francesco Gringoli

Index: hostap/hostapd/driver_nl80211.c
===================================================================
--- hostapd/driver_nl80211.c    2009-04-06 21:51:47.721351397 +0200
+++ hostapd/driver_nl80211.c    2009-04-06 21:51:57.601352365 +0200
@@ -1358,7 +1358,7 @@

                        /* crude heuristic */
                        if (mode->channels[idx].freq < 4000)
-                               if (mode->channels[idx].freq == 2848)
+                               if (mode->channels[idx].freq == 2484)
                                        mode->channels[idx].chan = 14;
                                else
                                        mode->channels[idx].chan =  
(mode->channels[idx].freq - 2407) / 5;


More information about the HostAP mailing list