Commit fc0a4f8
committed
src/cyw43_ctrl: Rework roam/interference config to use ioctl helpers
Reimplement the WiFi roaming and interference-mitigation configuration
in terms of cyw43_ioctl() instead of dedicated low-level (cyw43_ll_*)
functions, per maintainer feedback on PR #146. This keeps the footprint
small: only the generic u32 ioctl helpers cost binary space, while the
per-feature wrappers are static inline and the named-iovar helpers are
the only additional functions.
Add public helpers:
- cyw43_ioctl_set_u32() / cyw43_ioctl_get_u32()
Wrap cyw43_ioctl() for the common case of a 4-byte ioctl value.
Add CYW43_IOCTL_xxx constants (encoded as (WLC_cmd << 1) | is_set, the
same scheme as the existing CYW43_IOCTL_ defines):
- GET/SET_ROAM_TRIGGER, GET/SET_ROAM_DELTA, GET/SET_ROAM_SCAN_PERIOD
- GET/SET_INTERFERENCE_MODE
Roaming/interference API (behaviour unchanged from PR #146; the bytes
sent to the chip are identical, only the call path differs):
- cyw43_wifi_set_roam_params() / cyw43_wifi_get_roam_params()
static inline, built on the u32 ioctl helpers.
- cyw43_wifi_set_interference_mode() / cyw43_wifi_get_interference_mode()
static inline, built on the u32 ioctl helpers.
- cyw43_wifi_set_roam_enabled() / cyw43_wifi_get_roam_enabled()
Toggle/read the "roam_off" iovar via WLC_SET_VAR / WLC_GET_VAR.
Remove the cyw43_ll_wifi_{set,get}_roam_* and
cyw43_ll_wifi_{set,get}_interference_mode low-level functions and their
WLC_* defines, which are no longer needed.
function order1 parent ece6e7b commit fc0a4f8
4 files changed
Lines changed: 144 additions & 183 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
203 | 231 | | |
204 | 232 | | |
205 | 233 | | |
| |||
228 | 256 | | |
229 | 257 | | |
230 | 258 | | |
231 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
232 | 262 | | |
233 | 263 | | |
234 | 264 | | |
| |||
237 | 267 | | |
238 | 268 | | |
239 | 269 | | |
240 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
241 | 273 | | |
242 | 274 | | |
243 | 275 | | |
| |||
414 | 446 | | |
415 | 447 | | |
416 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
417 | 460 | | |
418 | 461 | | |
419 | 462 | | |
| |||
437 | 480 | | |
438 | 481 | | |
439 | 482 | | |
440 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
441 | 494 | | |
442 | 495 | | |
443 | 496 | | |
| |||
454 | 507 | | |
455 | 508 | | |
456 | 509 | | |
457 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
458 | 536 | | |
459 | 537 | | |
460 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
458 | 474 | | |
459 | 475 | | |
460 | 476 | | |
| |||
491 | 507 | | |
492 | 508 | | |
493 | 509 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | 510 | | |
530 | 511 | | |
531 | 512 | | |
| |||
703 | 684 | | |
704 | 685 | | |
705 | 686 | | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
752 | 706 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
758 | 724 | | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | 725 | | |
764 | 726 | | |
765 | 727 | | |
| |||
0 commit comments