- Move references to IF_LLADDR() into ieee80211_freebsd.c
- Add a comment on one that I need to verify before I move it
- Implement ieee80211_vap_sync_mac_address() which syncs the VAP mac address from the network interface MAC address. This uses FreeBSD-isms (network epoch, IF_LLADDR()) so it shouldn't be in net80211 itself.
Details
- Reviewers
- None
- Group Reviewers
wireless - Commits
- rGe035e8661c37: net80211: move references to IF_LLADDR() into ieee80211_freebsd.c
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/net80211/ieee80211_freebsd.c | ||
|---|---|---|
| 1199 | as a matter of fact if you'd want to handle that case you'd hook up an EVENTHANDLER_REGISTER(iflladdr_event, .. but that's not your use case. I am aware that the comment comes straight from elsewhere. | |
| 1202 | If we do make it private and factor it out then let's start to remove if_private.h usage as well and write it like we'd write a driver these days. | |
| 1206 | char *lladdr; | |
| 1214 | lladdr = if_getlladdr(ifp); | |
| 1215 | if (if_gettransmitfn(ifp) == ieee80211_vap_transmit && | |
| 1216 | if_getflags(ifp) & IFF_UP) | |
| 1217 | lladdr but I am not sure what comparing saves us rather than just copying. | |
| 1218 | lladdr | |
| sys/net80211/ieee80211_freebsd.c | ||
|---|---|---|
| 1202 | oh yeah, i think a goal of "get rid of if_private.h in net80211" is a worthy clean-up goal! | |
| 1217 |
Yeah, i agree. This is a straight refactor, i just copy/pasted what i saw. Lemme go clean this up a little as suggested. | |