MATLAB doesn't support the higher layers for wireless protocols. For that you would need a full fledged network simulator such as OPNET or NETSIM. You can check https://tetcos.com/file-exchange.html for some examples of MATLAB interfacing with NETSIM