This simplifies the code since there's no longer a need to
have error handling in the registration.
Unfortunately it means more extern function declarations are
needed, but the overall goal would seem to justify this.
Due to the removal of duplication in the netlink policies,
this reduces the size of wimax by almost 1k.
Signed-off-by: Johannes Berg <email@example.com>
Signed-off-by: David S. Miller <firstname.lastname@example.org>
wimax connection manager / daemon has to know what is current
state of the device. Previously it was only possible to get
notification whet state has changed.
By mistake, the new generic netlink's number for
WIMAX_GNL_OP_STATE_GET was declared inserting into the existing list
of API calls, not appending; thus, it'd break existing API.
Fixed by Inaky Perez-Gonzalez <email@example.com> by moving to
the tail, where we add to the interface, not modify the interface.
Thanks to Stephen Hemminger <firstname.lastname@example.org> for catching this.
Signed-off-by: Paulius Zaleckas <email@example.com>