Save frequency to network config

Also save frequency in wpa_config_write_network(). This is necessary for IBSS
networks which require the frequency to be set.

Change-Id: Ieff7a4008657728d463e10aee228a5d95cd7783e