This is very easy and fast way of drawing settings icon. You need only the star tool and change the live corners > chamfer type. Depends on your need you can make a hole in your star shape.
This tutorial shows how to create a honeycomb pattern using pattern command under the object menu. Hex by row option is used to create a seamless pattern design. Blend tool is used to create a shadow effect to give a more natural look.