hostapd: use proper helper functions for setting seg0/seg1 idx and chwidth