If you are thinking about using the M2 socket for wifi.....dont.
You will need a wifi card, ufl to rp-sma antenna cables, PCI backplate, and antennas. At the end of the day it is much cheaper/simplier to get a pci-e wifi card like zerk suggested. Also Zerk's linked card is better because it extends the antennas above your computer. Many people just have the antennas on the back of the computer with the computer between the antennas and the router blocking signal, then wonder why the signal sucks.
Of course if you dont have to use wifi then dont, nothing is better then hard wired ethernet.