This is the detent for the takedown pin (the other one is for the selector):
The springs are also different, but I forget which is which right now.
Some aftermarket grips will not properly secure the takedown pin spring in the M&P15-22. It's different than the M16's.
-- Chuck