Save frequency to network config

Also save frequency in wpa_config_write_network().

This is necessary for creating IBSS networks which requires the
frequency to be set.

Change-Id: Ic051d1ca1ce3b1d4bad231d46e86c21e818af5de