Index: /tools/gformat.py
===================================================================
--- /tools/gformat.py	(revision 10165)
+++ /tools/gformat.py	(revision 10166)
@@ -369,5 +369,5 @@
       # Default to station (client) mode
       ifacedump['wlanmode'] = "sta"
-      if ifacedump['mode'] in ['master', 'master-wds']:
+      if ifacedump['mode'] in ['master', 'master-wds', 'ap', 'ap-wds']:
         ifacedump['wlanmode'] = "ap"
       # Default to 802.11b mode
