קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ב-Android 9 נוספה היכולת של מכשירים לפעול בו-זמנית במצב STA ובמצב AP. במכשירים שתומכים בשידור בו-זמנית בשני תדרים (DBS), התכונה הזו מאפשרת יכולות חדשות, כמו אי-הפרעה ל-Wi-Fi של STA כשהמשתמש רוצה להפעיל נקודה לשיתוף אינטרנט (softAP).
דוגמאות ומקור
תמיכה בו-זמנית ב-STA/AP של Wi-Fi מובנית בקוד של מסגרת Android (AOSP) שמוגדרת כברירת מחדל. הוא נתמך גם בהטמעת HAL לדוגמה שמתוארת בקטע Wi-Fi HAL. הדגל WIFI_HIDL_FEATURE_DUAL_INTERFACE בזמן ה-build שמתואר בקטע הטמעה מאפשר להגדיר מפרט של בו-זמניות בממשק, שמציין תמיכה בו-זמנית ב-STA וב-AP.
הטמעה
כדי להטמיע במכשיר את היכולת לפעול בו-זמנית בתור STA ו-AP ב-Wi-Fi:
מפעילים דגל בזמן ה-build כדי להפעיל תמיכה בשני ממשקים ב-HAL.
הדגל נמצא ב-device/<oem>/<device>/BoardConfig-common.mk.
כדי לוודא שהתכונה פועלת כמצופה, מריצים בדיקה ידנית.
כדי לאמת את התכונה הזו באופן ידני, מפעילים ומכבים את ממשקי ה-STA וה-AP בנפרד מממשק המשתמש.
אם גם ה-AP וגם ה-STA נמצאים באותה תת-רשת, יכולות להתרחש בעיות ניתוב במכשיר שנבדק (DUT). כדי למנוע התנגשויות, נסו להעביר את הנתב לתת-רשת אחרת.
חלק מהספקים של שבבי Wi-Fi מעבירים את הרדיו למצב חלוקת זמן אם STA ו-AP נמצאים באותה תדר אבל בערוצים שונים. התוצאה היא ירידה משמעותית בביצועים. כדי לטפל בבעיה הזו, הצ'יפ יכול להשתמש ב-Channel Switch Avoidance (CSA) כדי:
העברת הנקודה לשיתוף אינטרנט לאותו ערוץ כמו STA
העברת הנקודה לשיתוף אינטרנט (AP) לתדר שונה מזה של STA
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Wi-Fi STA/AP concurrency\n\nAndroid 9 introduces the ability for devices to\noperate in STA and AP mode concurrently. For devices supporting Dual Band\nSimultaneous (DBS), this feature opens up new capabilities such as not\ndisrupting STA Wi-Fi when a user wants to enable hotspot (softAP).\n\nExamples and source\n-------------------\n\nWi-Fi STA/AP concurrency is supported in the default AOSP Android framework\ncode. It is also supported by the reference HAL implementation described in\n[Wi-Fi HAL](/docs/core/connect/wifi-hal). The\n`WIFI_HIDL_FEATURE_DUAL_INTERFACE` build-time flag described in\n[Implementation](#implementation) enables an interface concurrency specification\nindicating concurrent support for STA and AP.\n\nImplementation\n--------------\n\nTo implement Wi-Fi STA/AP concurrency on your device:\n\n1. Turn on a build-time flag to enable support for two interfaces in the HAL.\n The flag is located in `device/\u003coem\u003e/\u003cdevice\u003e/BoardConfig-common.mk`.\n\n - **WIFI_HIDL_FEATURE_DUAL_INTERFACE := true**\n2. Expose two network interfaces:\n\n - **wlan0** and **wlan1**\n\n| **Note:** To avoid performance issues, only use this feature on devices with a Wi-Fi chip that supports multiple independent hardware MACs (radio chains).\n\nThe `WIFI_HIDL_FEATURE_DUAL_INTERFACE` flag is ignored if the\n`WIFI_HAL_INTERFACE_COMBINATIONS`\nflag is specified. For more information, see\n[Wi-Fi multi-interface\nconcurrency](/docs/core/connect/wifi-hal#wi-fi_multi-interface_concurrency).\n\nValidation\n----------\n\nTo validate that the feature is working as intended, run a manual test.\n\nTo manually validate this feature, turn the STA and AP interfaces on and off\nindependently from UI.\n\nIf both AP and STA are on the same subnet, routing issues on the\ndevice-under-test (DUT) may occur. To avoid collisions, try moving the AP to a\ndifferent subnet.\n\nSome Wi-Fi chip vendors place the radio in time-sharing mode if STA and AP are\non the same band but on different channels. This leads to a severe drop in\nperformance. To address this issue, the chip can use Channel Switch Avoidance\n(CSA) to either:\n\n- Move the AP to the same channel as the STA\n- Move the AP to a different band from the STA"]]