Search Linux Wireless

hostapd: passing sta info struct to drivers?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

During porting the STA management to nl80211 it turned out that it would
be much nicer in the kernel if we would always set all the flags on a
STA that the kernel needs to get from hostapd.

To implement that, it would be good to simply pass the sta_info
structure, e.g. we currently have this code:

        if (sta->flags & WLAN_STA_WME)
                hostapd_sta_set_flags(hapd, sta->addr, WLAN_STA_WME, ~0);
        else
                hostapd_sta_set_flags(hapd, sta->addr, 0, ~WLAN_STA_WME);

and that would become

	hostapd_sta_set_flags(hapd, sta, WLAN_STA_WME);
or
	hostapd_sta_set_flags(hapd, sta->flags, WLAN_STA_WME);

where the third parameter indicates which flag may have changed and the
nl80211 driver would simply use only the flags.

Do you see any issues with that? Are there sometimes flag changes that
we do not want to commit to the kernel?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux