WIFI Shield Status is always WL_NO_SHIELD

Hello all,
I am new to Arduino and right off the bat I encoutered an issue with the Wifi shield acting as it's not being present.
The board I have is a OSEPP Mega 2560 which is similar to Arduino Mega 2560. As seen in the pic, I have an original Arduino Wireless Proto Shield connected and an Xbee.
The code uploaded is pretty simple.
Basically, if there's a Wifi status other than WL_NO_SHIELD light up my green LED otherwise light up the red one.
Reading online I found that some people experience this due to not having enough power from the USB so I've even connected this to a 12v and still no luck.

#include <WiFi.h>

char ssid[] = "mySSID";
char pwd[] = "myPW";

void setup(){
  pinMode(12, OUTPUT);
  pinMode(52, OUTPUT);
  WiFi.begin(ssid, pwd);
  Serial.begin(9600);
  
}

void loo
  if (WiFi.status() == WL_NO_SHIELD) {
    digitalWrite(52, HIGH);
    digitalWrite(12, LOW);
  } else {
    digitalWrite(12, HIGH);
    digitalWrite(52, LOW);
  }
  
}

anyone?

I, maybe i'm wrong, but the wifi library works only with the Wifi Shield (IEEE 802.11), not with the radio wireless :stuck_out_tongue:
Take a look at:

So the proto shield is for communication between xbees and does not have the capability to pickup and connect to a wireless network?

would that be a fair assumption?