קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ב-Android 12 נוספה תכונה של הפעלה בו-זמנית של נקודת גישה (AP) ל-Wi-Fi, שמאפשרת למכשירים ליצור שני ממשקי נקודת גישה (AP). התכונה הזו מאפשרת למכשירים לתמוך בשיתוף אינטרנט (tethering) דרך נקודה חמה (soft AP) של Wi-Fi עם פס כפול בו-זמנית (DBS). לפרטים על תמיכה בשיתוף אינטרנט בין מכשירים דרך נקודת Wi-Fi אחת לשיתוף אינטרנט, אפשר לעיין במאמר בנושא נקודת Wi-Fi לשיתוף אינטרנט (Soft AP).
בדף הזה מתואר אופן הפעולה של המכשיר כשהתכונה הזו מופעלת, וגם פרטי הטמעה ליצרנים ולספקים של מכשירים.
איך זה עובד
אם המכשיר תומך ב-Wi-Fi AP/AP concurrency, הוא יכול ליצור שני ממשקי AP, למשל, ממשק אחד שפועל בתדר 2.4 GHz וממשק אחד שפועל בתדר 5 GHz. לאחר מכן, הלקוחות יכולים להתחבר לכל אחד מממשקי ה-AP.
ה-Wi-Fi HAL יוצר ממשק מגשר יחיד עם שני ממשקי ה-AP ומציג אותו ל-Wi-Fi ולערימת הקישוריות כשהערימה מפעילה AP רך. אחרי שמפעילים את ה-AP הרך, ה-Wi-Fi HAL מציין שיש שני ממשקים זמינים ומעדכן את המידע (כמו ערוץ הפעולה, רוחב הפס ו-BSSID) לכל AP.
כדי לחסוך בחשמל, המסגרת משביתה נקודת גישה לא בשימוש (2.4 GHz, 5 GHz או 6 GHz) אחרי תקופה של חוסר פעילות. ה-framework מחשיב נקודת גישה כלא פעילה כשאין לקוח שמחובר אליה. יצרני המכשירים יכולים להתאים אישית את משך התקופה הזו של חוסר פעילות. מידע נוסף זמין במאמר בנושא התאמה אישית של תקופת חוסר הפעילות.
המכשירים תומכים ב-Wi-Fi AP/AP concurrency באמצעות אחת מההגדרות הבאות של נקודות גישה וירטואליות מגשרות:
הגדרת שני תדרים (הערוץ נבחר אוטומטית על ידי המסגרת או מנהל ההתקן)
הגדרת שני ערוצים בנקודת גישה דו-פסית
דרישות
כדי להטמיע את התכונה 'נקודת גישה ל-Wi-Fi/הפעלה בו-זמנית של נקודות גישה', המכשירים צריכים לעמוד בדרישות הבאות:
שבב ה-Wi-Fi או הקושחה צריכים לתמוך בשני חיבורים בו-זמניים לנקודות גישה. הקושחה צריכה לתמוך בכל השילובים של ערוצים ופסים בשני החיבורים. כדי למנוע בעיות בביצועים, מומלץ להשתמש בשבב Wi-Fi עם יכולת DBS 2x2+2x2.
המכשיר צריך לתמוך בשיטות הבאות ב-HAL של ספק ה-Wi-Fi:
IWifiChip.createBridgedApIface()
IWifiChip.removeIfaceInstanceFromBridgedApIface()
IWifiApIface.resetToFactoryMacAddress()
IWifiApIface.getBridgedInstances()
הטמעה
כדי להטמיע את התכונה 'נקודת גישה ל-Wi-Fi/מקבילות של נקודת גישה':
config_wifiBridgedSoftApSupported: תמיכה במספר נקודות גישה שמגשרות ביניהן.
config_wifiStaWithBridgedSoftApConcurrencySupported: תומך בהפעלה בו-זמנית של תחנה (STA) ומספר נקודות גישה (AP) מגשרות.
במכשירים שמשתמשים ב-AIDL Wi-Fi HAL או ב-HIDL Wi-Fi HAL 1.6, צריך להגדיר את AP_BRIDGED בשילוב של ממשק Wi-Fi HAL. לפרטים נוספים, ראו הפעלה של כמה ממשקי Wi-Fi בו-זמנית.
מגדירים את התצורה של נקודת הגישה הווירטואלית המגשרת על ידי קריאה לאחת מהשיטות הבאות:
רישום קריאה חוזרת כדי לקבל את יכולות המכשיר באמצעות WifiManager#registerSoftApCallback. הקריאה החוזרת SoftApCallback מספקת את השיטות הבאות להגדרת נקודת גישה וירטואלית מגשרת:
config_wifiFrameworkSoftApShutDownIdleInstanceInBridgedModeTimeoutMillisecond:
הערך שמוגדר כברירת מחדל לזמן הקצוב לתפוגה של ההשבתה. תקף רק אם המדיניות SoftApConfiguration#setBridgedModeOpportunisticShutdownEnabled מופעלת.
(זמין מגרסה 13)
config_wifiFrameworkSoftApDisableBridgedModeShutdownIdleInstanceWhenCharging:
הגדרה שקובעת אם להשבית את טיימר הכיבוי במצב חוסר פעילות בזמן טעינה.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-09-02 (שעון 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-09-02 (שעון UTC)."],[],[],null,["Android 12 introduces Wi-Fi AP/AP concurrency, which\nlets devices create two access point (AP) interfaces. This feature lets\ndevices support tethering through a dual band simultaneous (DBS) Wi-Fi\nhotspot (soft AP). For details on supporting tethering through a single Wi-Fi\nhotspot, see\n[Wi-Fi hotspot (Soft AP)](/docs/core/connect/wifi-softap).\n\nThis page describes the device behavior when this feature is enabled and\nimplementation details for device manufacturers and vendors.\n\nHow it works **Note:** Android 12 supports the 2.4 GHz and 5 GHz bands for Wi-Fi AP/AP concurrency. Android 13 adds support for the 6 GHz band.\n\nWhen Wi-Fi AP/AP concurrency is supported, the device can create two AP\ninterfaces, for example, one interface working on the 2.4 GHz band and one\non the 5 GHz band. Clients can then connect to each of the AP interfaces.\n\nThe Wi-Fi HAL generates a single bridged interface with the two AP\ninterfaces and exposes it to the Wi-Fi and connectivity stack when the stack\nenables a soft AP. After the soft AP is enabled, the Wi-Fi HAL indicates that\ntwo interfaces are available and updates the information\n(such as operation channel, bandwidth, and BSSID) for each AP.\n\nTo save power, the framework disables an unused AP (2.4 GHz, 5 GHz, or\n6 GHz) after a period of inactivity. The framework considers an AP to be\ninactive when no client is connected. Device manufacturers can customize the\nlength of this inactive period. For more information, see\n[Customize the inactivity period](#customize).\n\nDevices support Wi-Fi AP/AP concurrency by using one of the following\nbridged soft AP configurations:\n\n- Configuring two bands (the channel is automatically selected by the framework or the driver)\n- Configuring two channels on a dual-band AP\n\nRequirements\n\nTo implement Wi-Fi AP/AP concurrency, devices must meet the following\nrequirements:\n\n- The Wi-Fi chip or firmware must support two concurrent AP\n connections. The firmware must support all channel and band combinations\n for both connections. To avoid performance issues, we recommend using\n a 2x2+2x2 DBS capable Wi-Fi chip.\n\n- The device must support the following methods in the Wi-Fi Vendor HAL:\n\n - `IWifiChip.createBridgedApIface()`\n - `IWifiChip.removeIfaceInstanceFromBridgedApIface()`\n - `IWifiApIface.resetToFactoryMacAddress()`\n - `IWifiApIface.getBridgedInstances()`\n\nImplementation\n\nTo implement Wi-Fi AP/AP concurrency, do the following:\n\n1. Enable at least one of the following functions (disabled by default) using\n [runtime resource overlays](/docs/core/architecture/rros):\n\n - `config_wifiBridgedSoftApSupported`: Supports multiple APs that are bridged together.\n - `config_wifiStaWithBridgedSoftApConcurrencySupported`: Supports concurrency of a station (STA) and multiple bridged APs.\n2. For devices using the AIDL Wi-Fi HAL or HIDL Wi-Fi HAL 1.6,\n define `AP_BRIDGED` in the Wi-Fi HAL interface combination. For more\n details, see\n [Wi-Fi multi-interface concurrency](/docs/core/connect/wifi-hal#wifi-multiinterface-concurrency).\n\n3. Configure the bridged soft AP configuration by calling one of the following\n methods:\n\n - [`SoftApConfiguration.Builder#setBands`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/SoftApConfiguration.java?q=%22Builder%20setBands%22)\n - [`SoftApConfiguration.Builder#setChannels`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/SoftApConfiguration.java?q=%22Builder%20setChannels%22)\n4. Register a callback to obtain the device capabilities using\n `WifiManager#registerSoftApCallback`. The `SoftApCallback` callback\n provides the following methods for a bridged soft AP configuration:\n\n - [`SoftApCallback#onInfoChanged`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/WifiManager.java?q=%22void%20onInfoChanged%28@NonNull%20List%22): Provides information about the running soft AP instances.\n - [`SoftApCallback#onConnectedClientsChanged`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/framework/java/android/net/wifi/WifiManager.java?q=%22onConnectedClientsChanged%28@NonNull%20SoftApInfo%22): Provides a list of connected clients for a soft AP instance.\n\nCustomize the inactivity period\n\nTo customize the length of the inactivity period, configure the following\noverlay, which is found\nin [`packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Wifi/service/ServiceWifiResources/res/values/config.xml):\n\n- `config_wifiFrameworkSoftApShutDownIdleInstanceInBridgedModeTimeoutMillisecond`:\n The default shutdown timeout interval. Only valid if\n `SoftApConfiguration#setBridgedModeOpportunisticShutdownEnabled` is enabled.\n\n- (Available from 13)\n `config_wifiFrameworkSoftApDisableBridgedModeShutdownIdleInstanceWhenCharging`:\n Indicates whether to disable the inactivity shutdown timer when charging."]]