Wifi DipCortex

Changed Wifi.h to my access point settings but cannot connect to home hub, do I need to change anything else?
// Default SSID Settings
#define SSID "WORKGROUP"
#define AP_KEY "xxxxxx1234"
#define AP_SECURITY WPA2
// Default SSID Settings
#define SSID "WORKGROUP"
#define AP_KEY "xxxxxx1234"
#define AP_SECURITY WPA2