Is there an open source network monitor software that can capture packets from a wireless router

Even though not connected to the wireless router? Is there an open source program that can do this. I know of several programs that capture packets, but you actually have to be connected to the wireless router.. When I say connected I’m not mean physically I mean connecting by putting the wep or wap key. I want to capture packets from my laptop.