wifi shield promiscuous mode

I would like to be able capture Probe Request or Probe Response kind of packets. I looked at code on git however I still don't understand if I modify this code, will enable me to capture above mentioned packets.