<PAGE>

                       [Letterhead of Cooley Godward LLP]

November 28, 2001


WIRELESS FACILITIES, INC.
4810 Eastgate Mall
San Diego, CA 92121


Ladies and Gentlemen:

You have requested our opinion with respect to certain matters in connection
with the filing by WIRELESS FACILITIES, INC., a Delaware corporation (the
"Company"), of a Registration Statement on Form S-3 (the "Registration
Statement") with the Securities and Exchange Commission, covering the offering
of up to 146,806 shares of the Company's Common Stock, $.001 par value (the
"Shares"), for resale by the selling stockholders named therein (the "Selling
Stockholders").

In connection with this opinion, we have examined the Registration Statement
and related Prospectus, your Certificate of Incorporation and Bylaws, as
amended, and such other documents, records, certificates, memoranda and other
instruments as we deem necessary as a basis for this opinion. We have assumed
the genuineness and authenticity of all documents submitted to us as originals,
the conformity to originals of all documents submitted to us as copies thereof,
the accuracy, completeness and authenticity of certificates of public officials
and the due execution and delivery of all documents where due execution and
delivery are a prerequisite to the effectiveness thereof.

On the basis of the foregoing, and in reliance thereon, we are of the opinion
that the Shares are validly issued, fully paid and non-assessable.

We consent to the reference to our firm under the caption "Legal Matters" in
the Prospectus included in the Registration Statement and to the filing of this
opinion as an exhibit to the Registration Statement.

Very truly yours,

Cooley Godward LLP

/s/ LANCE W. BRIDGES
Lance W. Bridges

