debuged wifi-ap.cc