problem running webserver example in elechouse MRF24WB0MA based Wishield

Upon uploading the webserver example code Wishield connects to the network (because IND led gets ON) however i can’t ping the device and i cannot get it to work…i don’t know if it is router model incompatibility or problem with the shield or that of code…I downloaded their official library from the official manual they provided me with…here’s my code modification of the example, i’ve jsut modified my ssid with my wifi name and pass phrase with my WPA-2PSK password…have i done anything wrong, I’m an electrical engineering student and i’ve had quite an experience in working with arduino but i’m completely new to networking and wishield, please help me out

/*
 * Web Server
 *
 * A simple web server example using the Arduino WiFi Shiled from www.elechouse.com
 * Modified by elechouse.com, based on the version by Asynclabs
 */

#include <WiShield.h>

#define WIRELESS_MODE_INFRA	1
#define WIRELESS_MODE_ADHOC	2

// Wireless configuration parameters ----------------------------------------
unsigned char local_ip[] = {192,168,1,122};	//configure IP address of this module, usually one bewteen 192.168.1.100~192.168.1.199
unsigned char gateway_ip[] = {192,168,0,1};	// router or gateway IP address, usually do not need to change it.
unsigned char subnet_mask[] = {255,255,255,0}; // subnet mask for the local network, usually do not need to change it.
const prog_char ssid[] PROGMEM = {"DOTA"}; // SSID of networks, max 32 bytes.

unsigned char security_type = 3;// 0 - open; 1 - WEP; 2 - WPA; 3 - WPA2     As shown in the picture above, mine is WPA2

// WPA/WPA2 passphrase
const prog_char security_passphrase[] PROGMEM = {"9849351922"};// max 64 characters

// WEP 128-bit keys
// sample HEX keys
prog_uchar wep_keys[] PROGMEM = {	0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d,	// Key 0
									0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,	0x00,	// Key 1
									0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,	0x00,	// Key 2
									0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,	0x00	// Key 3
								};

// setup the wireless mode
// infrastructure - connect to AP
// adhoc - connect to another WiFi device
unsigned char wireless_mode = WIRELESS_MODE_INFRA;

unsigned char ssid_len;
unsigned char security_passphrase_len;
//---------------------------------------------------------------------------

void setup()
{
	WiFi.init();
}

// This is the webpage that is served up by the webserver
const prog_char webpage[] PROGMEM = {"HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n<center><h1>Hello World!! I am WiFi Shield</h1><form method=\"get\" action=\"0\">Toggle LED:<input type=\"submit\" name=\"0\" value=\"LED1\"></input></form></center>
Clicking the button will get nowhere.
<a href=\"http://www.elechouse.com\">elechouse.com</a>"};

void loop()
{
	WiFi.run();
}

I don't know anything about that hardware, but I know networking. This won't work. The gateway is not reachable according to this setup.

unsigned char local_ip[] = {192,168,1,122};
unsigned char gateway_ip[] = {192,168,0,1};
unsigned char subnet_mask[] = {255,255,255,0};

You must determine which is the correct subnet for your localnet. It is either
192.168.0.0/24
or
192.168.1.0/24

Thanks surfer KIm...i checked my router ip using "Fing" an android app to check the devices in the network... it showed the ip 192.168.0.1 of my router..i have pinged that ip from my laptop and i got response... are you sure that the IP 192.168.0.1 is invalid, it is also that the wishield connects to the wifi...but to be frank the default gateway ip in the example code was 192.168.1.1 and wishield was still connected to the network but not responding...so I may have had entered wrong IP now because no matter if the gateway was 192.168.0.1 or 192.168.1.1 error is similar with mine hardware...please explain why you meant that i could have entered wrong ip...thanks in advance