ap: remove eap support

Mainly because it hasn't been tested and we don't need it at the
moment. It can be enabled again in future if there's a real need.
gw: rename internal variable
gw: massive refactoring