Index: tools/gformat.py
===================================================================
--- tools/gformat.py	(revision 11736)
+++ tools/gformat.py	(revision 11738)
@@ -31,5 +31,4 @@
 import sys
 import os
-import re
 sys.path.append(os.path.dirname(__file__))
 sys.path.append('/usr/local/bin')
@@ -41,5 +40,7 @@
 import make_network_kml
 import math
+import random
 import rdnap
+import re
 import socket
 import string
@@ -47,4 +48,5 @@
 import time
 import urlparse
+
 from pprint import pprint
 from collections import defaultdict
@@ -1835,4 +1837,24 @@
                 datadump[iface_key] = datadump[iface_key]['desc']
 
+              # We are not using 802.11b anymore. OFDM is preferred over DSSS
+              # due to better collision avoidance.
+              if datadump[iface_key]['type'] == '11b':
+                datadump[iface_key]['type'] = '11g'
+
+              # Setting 802.11g channels to de-facto standards, to avoid
+              # un-detected sharing with other overlapping channels
+              # 
+              # Technically we could also use channel 13 in NL, but this is not
+              # recommended as foreign devices might not be able to select this
+              # channel. Secondly using 1,5,9,13 instead is going to clash with
+              # the de-facto usage of 1,6,11.
+              # 
+              # See: https://en.wikipedia.org/wiki/List_of_WLAN_channels
+              channels_at_2400Mhz = (1,6,11)
+              if datadump[iface_key]['type'] == '11g' and datadump[iface_key].has_key('channel'):
+                datadump[iface_key]['channel'] = int(datadump[iface_key]['channel'])
+                if datadump[iface_key]['channel'] not in channels_at_2400Mhz:
+                   datadump[iface_key]['channel'] = random.choice(channels_at_2400Mhz)
+
               # Mandatory interface keys
               if not datadump[iface_key].has_key('status'):
