to do that you would need a wireless router with at least one ethernet port
and a wireless card for the pc not connected via cable
as long as its defo a router both pcs shoudl be able to access the net on there own without the other being switched on