Through calls to the "iwpriv" utility. Have a look at the included README, and the "wlanup" script.