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
Add capability flag for IBSS and get_capabiliy modes

Add a driver capability flag for drivers which support IBSS mode and
set it for nl80211 drivers which have set the NL80211_IFTYPE_ADHOC.

Add a new option "modes" to "get_capability" which will return
"AP" and "IBSS" if the corresponding capability flags are set.

Change-Id: I7991ae49b6ac6bc154d4edb0b01af774f4e8522c
Merge remote-tracking branch 'origin/cm-10.1' into cm-10.1-linaro